July 30, 2009

vim /.vimrc

l ÃÃèÃΩïÃàââ°âéÃâÃðå
normalî°Ãºèâ°âãÃæìÃÃâ¢qa (qð®Ã§â«ÃΩïÃàâÃÃè,aâ°ââ«ÃÃèÃöÃÃêçÃÃâ)
@aÃâÃðåÃÃè,ÃâÃðåNè°ÃàôÃæìÃÃâ¢N@a (Nâ°ââ«ÃïâÃâ Ã³)

l Ãàâ Ãô§ÃâÏÃÃöÃâ Ã³Ã¨¶
normalî°Ãºèâ°âãÃæìÃÃâ¢:%s/abc//g
    % : ÃÃ¥ÏÃÃçÃï¥â°ââ¢Ãñáâ°Âªâ
    s : ÃΩÃÃç¢
    /abc : ÃÃ¥ÏÃÃçabc
    / :ÃΩÃÃç¢ÃªìÃûú,Ãâ Â§Ã§ÃÃàâ Ãô§,ÃâÃâ°Âªâ¢â°âçÃæìÃÃâ¢â°ÂªÂªâ°Î©Ã¯Ãâ Ã³Ã¨¶,
        öÃöÃÃâÃabcÃΩÃÃç¢ÃàêcbaÃàôÃæìÃÃâ¢:%s/abc/cba/g
    /g : ÃÃèðåâ°ââ ÃÃ¥ÏÃÃçÃàâÃöÃÃÃÃÃÃÏÃÃΩöÃÃΩÃÃç¢

" ÃÃæÃΩÃbackup fileÃêéúÃ
set backupext=.bak
" ÃÃæÃΩÃbackup dir
set backupdir=E:/bak/vim
# úÃÃêÃÃÃâ Ãâ¥Ã¯Ã´òâ°â«Ã
syntax on
# úÃÃêÃÃáâ¢Ãä®Ãº©ÃøõúåÃçâ¥â°âãâ°âÃðåÃíåÃΩìÃâçðåÃöÃú©Ãøõâ°âÃÃá¥
set autoindent
# úÃÃêÃâ°ÂªÂ£Ãâ ÃÃôâ«ÃÃΩú©ÃøõâÃÃâ°Ã¦Ã£Ã¶ÃÃú®ÃÃôC++îãÃâ«Ã¨Ãóâúå“{”ÃöÃâ°âãâ°âÃðåâ°ÂºÃ¶Ãáâ¢Ãä®Ã¢ûÃäâ Ãº©Ãøõ
set cindent
# ÃÃæÃΩÃÃôâ«ÃÃΩú©ÃøõÃöÃâûÃáèúåÃçâ¥ÃÃèâ°âÃÃâ«Ãú©ÃøõÃöÃÃâ Ã³Ã¨¶Ãïâ
set shiftwidth=4
# Ãòæçâ«Ã°åÃèâ
set number
# ÃÃæÃΩÃTabÃÃΩÃâ«Â¶
set tabstop=4

:%s/[A-Z]/l&/g   ÃîÃîÃîÏÃâèÃÃô

ÃÃâÃâ Ã¡ÃéÃÃàâÃëΩâ°ÂªÂ§

ÃëΩâ°ÂªÂ§                        ÃÃâÃâ Ã¡ÃêÃä®
hÃàñ^h                    ÃêëÃâ¶Ãêâ°âÃâ°ââ¢Ãâ Ã³Ã¨¶
jÃàñ^jÃàñ^n                Ãêëâ°âãÃêâ°âÃðå
kÃàñ^p                    Ãêëâ°âäÃêâ°âÃðå
lÃàñéâ«Ãâ Âº                     ÃêëÃèâ¥Ãêâ°âÃâ°ââ¢Ãâ Ã³Ã¨¶
G                        ÃêÃàâÃñáâ°ÂªâÃöÃÃúÃÃêéâ°âÃðå
nG                       ÃêÃàâÃñáâ°ÂªâÃöÃè¨nðå
w                        ÃêÃàââ°âãâ°âÃâ°ââ¢Ãâ Ã³ÃöÃúÃç¥
W                        ÃêÃàââ°âãâ°âÃâ°ââ¢Ãâ Ã³ÃöÃúÃç¥ÃºåÃøΩÃïâ¢Ãâ Ã¡ÃÃÏè¶Ãèâ
b                        ÃêÃàâÃâçâ°âÃâ°ââ¢Ãâ Ã³ÃöÃúÃç¥
B                        ÃêÃàâÃâçâ°âÃâ°ââ¢Ãâ Ã³ÃöÃúÃç¥ÃºåÃøΩÃïâ¢Ãâ Ã¡ÃÃÏè¶Ãèâ
L                        ÃêÃàâñèÃÏïÃöÃÃúÃÃêéâ°âÃðå
M                        ÃêÃàâñèÃÏïÃöÃâ°ââ Ãó¥â°âÃðå
H                        ÃêÃàâñèÃÏïÃöÃè¨â°âÃðå
e                        ÃêÃàââ°âãâ°âÃâ°ââ¢Ãâ Ã³ÃöÃêìÃâæ
E                        ÃêÃàââ°âãâ°âÃâ°ââ¢Ãâ Ã³ÃöÃêìÃâæúåÃøΩÃïâ¢Ãâ Ã¡ÃÃÏè¶Ãèâ
(                        ÃêÃàâÃèâ¢Ãâ ÃªÃöÃúÃç¥
)                        ÃêÃàâÃèâ¢Ãâ ÃªÃöÃêìÃâæ
{                        ÃêÃàâÃõÃêΩÃöÃúÃç¥
}                        ÃêÃàââ°âãâ°âÃâ°ââ¢ÃõÃêΩÃöÃúÃç¥
0Ãàñ|                     ÃêÃàâÃΩìÃâçðåÃöÃè¨â°âÃÃàó
n|                       ÃêÃàâÃΩìÃâçðåÃöÃè¨nÃàó
^                        ÃêÃàâÃΩìÃâçðåÃöÃè¨â°âÃâ°ââ¢Ãùûéâ«Ãâ Ã³Ã¨¶
$                        ÃêÃàâÃΩìÃâçðåÃöÃÃúÃÃêéâ°âÃâ°ââ¢Ãâ Ã³Ã¨¶
+Ãàñreturn                ÃêÃàââ°âãâ°âÃðåÃöÃè¨â°âÃâ°ââ¢Ãâ Ã³Ã¨¶
-                        ÃêÃàâÃâçâ°âÃðåÃöÃè¨â°âÃâ°ââ¢Ãùûéâ«Ãâ Ã³Ã¨¶

Ãú®viâ°ââ ÃâªÃäâ ÃñáÃú¨

ÃëΩâ°ÂªÂ§                         ÃèíÃÃâ¢Ãä®â°Î©Ãº
a                        Ãú®ÃÃâÃâ Ã¡ÃêéÃèíÃÃâ¢ÃñáÃú¨
A                        Ãú®ÃΩìÃâçðåÃèíÃÃâ¢ÃñáÃú¨
i                        Ãú®ÃÃâÃâ Ã¡ÃâçÃèíÃÃâ¢ÃñáÃú¨
I                        Ãú®ÃΩìÃâçðåÃâçÃèíÃÃâ¢ÃñáÃú¨
o                        Ãú®ÃΩìÃâçðåÃöÃâ°âãÃæÏÃèíÃÃâ¢Ãñâðå
O                        Ãú®ÃΩìÃâçðåÃöÃâ°âäÃæÏÃèíÃÃâ¢Ãñâðå
:r file                  ÃêÃÃâ¢Ãñáâ°ÂªâfileÃÃÃÃÃÏúåÃÏâÃèíÃú®ÃΩìÃâçðåÃêé
:nr file                 ÃêÃÃâ¢Ãñáâ°ÂªâfileÃÃÃÃÃÏúåÃÏâÃèíÃú®Ã¨¨nðåÃêé
escape                   ÃõûÃàâÃëΩâ°ÂªÂ§Ã®°Ãºè
^v char                  ÃèíÃÃâ¢ÃóâÃøΩÃïâ¢charÃöÃÃåáÃÃöÃÃèâ°ÏâúåÃøôÃòÃâ°ââ«â°â«ÃÃèíÃÃâ¢ÃâÏÃÃäÃâ Ã³Ã¨¶

Ãú®viâ°ââ Ãàâ Ãô§ÃñáÃú¨

ÃëΩâ°ÂªÂ§                         Ãàâ Ãô§Ãìçâ°Î©Ãº
x                        Ãàâ Ãô§ÃÃâÃâ Ã¡Ã§ÃÃöÃÃâ Ã³Ã¨¶ÃºåÃèÃâ°Âªâ¢Ãú®xÃâçÃäâ â°âäÃúÃöÃÃàâ Ãô§ÃöÃÃâ Ã³Ã¨¶ÃïâÃõÃ
nx                       â°ÂªÃ©ÃΩìÃâçÃÃâÃâ Ã¡Ã§ÃÃæÃÃêéÃàâ Ãô§nâ°ââ¢Ãâ Ã³Ã¨¶
X                        Ãàâ Ãô§ÃÃâÃâ Ã¡ÃâçÃöÃÃâ Ã³Ã¨¶ÃºåÃèÃâ°Âªâ¢Ãú®XÃâçÃäâ â°âäÃúÃöÃÃàâ Ãô§ÃöÃÃâ Ã³Ã¨¶ÃïâÃõÃ
nX                       â°ÂªÃ©ÃΩìÃâçÃÃâÃâ Ã¡Ã§ÃÃæÃÃâçÃàâ Ãô§nâ°ââ¢Ãâ Ã³Ã¨¶
dw                       Ãàâ Ãáâ¥â°âãâ°âÃâ°ââ¢Ãâ Ã³ÃöÃúÃç¥
ndw                      â°ÂªÃ©ÃΩìÃâçÃÃâÃâ Ã¡Ã§ÃÃæÃÃêéÃàâ Ãô§nâ°ââ¢Ãâ Ã³
dG                       Ãàâ Ãô§Ã°åúåÃõ¥ÃàâÃñáâ°ÂªâêìÃùü
dd                       Ãàâ Ãô§Ãï¥Ã°å
ndd                      â°ÂªÃ©ÃΩìÃâçðåúÃÃÃãÃæÃÃêéÃàâ Ãô§
db                       Ãàâ Ãô§ÃÃâÃâ Ã¡ÃâçÃù¢ÃöÃÃâ Ã³
ndb                      â°ÂªÃ©ÃΩìÃâçðåúÃÃÃãÃæÃÃâçÃàâ Ãô§nÃâ Ã³
:n,md                    â°ÂªÃ©Ã¨¨mðåúÃÃÃãÃæÃÃâçÃàâ Ãô§nðå
dÃàñd$                    â°ÂªÃ©ÃÃâÃâ Ã¡Ã§ÃÃàâ Ãô§ÃàâðåÃâæ
dcursor_command          Ãàâ Ãô§Ãáâ¥ÃÃâÃâ Ã¡ÃëΩâ°ÂªÂ§Ã§ÃúåöÃdGÃâÃâ°ÂªÃ©ÃΩìâ°â«ÃÃÃÃðåÃàâ Ãô§Ãáâ¥Ãñáâ°ÂªâÃöÃÃú´Ãâæ
^hÃàñbackspace            ÃèíÃÃâ¢ÃóâúåÃàâ Ãô§ÃâçÃù¢ÃöÃÃâ Ã³Ã¨¶
^w                       ÃèíÃÃâ¢ÃóâúåÃàâ Ãô§ÃâçÃù¢ÃöÃÃâ Ã³

â°Ã¸ÃÃîÏviÃñáÃú¨

ÃÃèâ°ââ¢ÃëΩâ°ÂªÂ§ÃâçÃù¢ÃöÃÃïâÃâ Ã³Ã°®Ã§â«ÃÃâ¢ÃëΩâ°ÂªÂ§ÃáçççÃöÃè°Ãïâ
ÃëΩâ°ÂªÂ§                         ÃõøÃç¢Ãìçâ°Î©Ãº
rchar                    Ãî®charÃõøÃç¢ÃΩìÃâçÃâ Ã³Ã¨¶
R text escape            Ãî®textÃõøÃç¢ÃΩìÃâçÃâ Ã³Ã¨¶Ãõ¥ÃàâÃç¢â°âãEscÃîÃ
stext escape             Ãî®textâ°ÂªÂ£ÃõøÃΩìÃâçÃâ Ã³Ã¨¶
SÃàñcctext escape         Ãî®textâ°ÂªÂ£ÃõøÃï¥Ã°å
cwtext escape            ÃâÃÃΩìÃâçÃâ Ã³ÃîÏâ°ââ«text
Ctext escape             ÃâÃÃΩìÃâçðåâ°Î©Ã´â°âãÃöÃÃîÏâ°ââ«text
cG escape                â°Ã¸ÃÃîÏÃáâ¥Ãñáâ°ÂªâÃöÃÃú´Ãâæ
ccursor_cmd text escape  â°ÂªÃ©ÃΩìÃâçâ°Î©Ã§ÃΩÃçÃÃàâÃÃâÃâ Ã¡ÃëΩâ°ÂªÂ§â°Î©Ã§ÃΩÃçÃÃÃΩÃîÏâ°ââ«text

Ãú®viâ°ââ Ãüâ¢Ãâæâ°âéÃõøÃç¢

ÃëΩâ°ÂªÂ§                         Ãüâ¢Ãâæâ°âéÃõøÃç¢Ãìçâ°Î©Ãº
/text                    Ãú®Ãñáâ°Âªââ°ââ ÃêëÃâçÃüâ¢Ãâætext
?text                    Ãú®Ãñáâ°Âªââ°ââ ÃêëÃêéÃüâ¢Ãâætext
n                        Ãú®Ãêåâ°âÃÃñÏÃêëÃáçççÃüâ¢Ãâæ
N                        Ãú®ÃõâÃèçÃñÏÃêëÃáçççÃüâ¢Ãâæ
ftext                    Ãú®ÃΩìÃâçðåÃêëÃâçÃüâ¢Ãâætext
Ftext                    Ãú®ÃΩìÃâçðåÃêëÃêéÃüâ¢Ãâætext
ttext                    Ãú®ÃΩìÃâçðåÃêëÃâçÃüâ¢ÃâætextúåÃÏâÃâÃÃÃâÃâ Ã¡ÃÃöâ°Î©Ã§Ãú®textÃöÃè¨â°âÃâ°ââ¢Ãâ Ã³Ã¨¶
Ttext                    Ãú®ÃΩìÃâçðåÃêëÃêéÃüâ¢ÃâætextúåÃÏâÃâÃÃÃâÃâ Ã¡ÃÃöâ°Î©Ã§Ãú®textÃöÃè¨â°âÃâ°ââ¢Ãâ Ã³Ã¨¶
:set ic                  Ãüâ¢ÃâæÃóâÃøΩÃïâ¢Ã§ÃÃâèÃÃô
:set noic                Ãüâ¢ÃâæÃóâÃÃÏçÃÃâèÃÃôÃïèÃÃü
:s/oldtext/newtext       Ãî®newtextÃõøÃç¢oldtext
:m,ns/oldtext/newtext    Ãú®mðåÃÃöÃøánúåÃî®newtextÃõøÃç¢oldtext
&                        ÃáçççÃúÃÃêéÃöÃ:sÃëΩâ°ÂªÂ§
:g/text1/s/text2/text3   Ãüâ¢ÃâæÃÃ¥ÃÃê´text1ÃöÃðåúåÃî®text3ÃõøÃç¢text2
:g/text/command          Ãú®ÃâÃÃúâÃÃ¥ÃÃê´textÃöÃðåÃøêðåcommandÃâÃð®Ã§â«ÃöÃÃëΩâ°ÂªÂ§
:v/text/command          Ãú®ÃâÃÃúââ°âçÃÃ¥ÃÃê´textÃöÃðåÃøêðåcommandÃâÃð®Ã§â«ÃöÃÃëΩâ°ÂªÂ§

Ãú®viâ°ââ Ã§çÃàâÃñáÃú¨

ÃëΩâ°ÂªÂ§                         ççÃàâÃìçâ°Î©Ãº
yy                       ÃâÃÃΩìÃâçðåÃöÃÃÃÃÃÃÏÃîæÃÃâ¢â°âÂ¥ÃóâúìÃÃâ¤ÃÃ¥â«
nyy                      ÃâÃnðåÃöÃÃÃÃÃÃÏÃîæÃÃâ¢â°âÂ¥ÃóâúìÃÃâ¤ÃÃ¥â«
p                        ÃâÃâ°âÂ¥ÃóâúìÃÃâ¤ÃÃ¥â«â°ââ ÃöÃÃñáÃú¨ÃîæÃÃâ¢ÃÃâÃâ Ã¡Ãêé
P                        ÃâÃâ°âÂ¥ÃóâúìÃÃâ¤ÃÃ¥â«â°ââ ÃöÃÃñáÃú¨ÃîæÃÃâ¢ÃÃâÃâ Ã¡Ãâç
dsfsd "(a-z)nyy          ççÃàânðåÃîæÃÃâ¢ÃêçÃâ Ã³â°ââ«ÃúÃÃã¨ÃèâÃÃÃÃöÃÃèÃÃëΩÃêçúìÃÃâ¤ÃÃ¥â«ÃºåÃúÃÃïâ¢nð®Ã§â«ÃΩìÃâçðå
"(a-z)ndd                Ãàâ Ãô§nðåÃîæÃÃâ¢ÃêçÃâ Ã³â°ââ«ÃúÃÃã¨ÃèâÃÃÃÃöÃÃèÃÃëΩÃêçúìÃÃâ¤ÃÃ¥â«ÃºåÃúÃÃïâ¢nð®Ã§â«ÃΩìÃâçðå
"(a-z)p                  ÃâÃÃêçÃâ Ã³â°ââ«ÃúÃÃã¨ÃèâÃöÃÃèÃÃëΩÃêçúìÃÃâ¤ÃÃ¥â«ÃöÃÃÃÃÃÃÏÃîæÃÃâ¢ÃΩìÃâçðåÃêé
"(a-z)P                  ÃâÃÃêçÃâ Ã³â°ââ«ÃúÃÃã¨ÃèâÃöÃÃèÃÃëΩÃêçúìÃÃâ¤ÃÃ¥â«ÃöÃÃÃÃÃÃÏÃîæÃÃâ¢ÃΩìÃâçðåÃâç

Ãú®viâ°ââ Ãí§Ãâàâ°âéÃáççç

ÃëΩâ°ÂªÂ§                         Ãí§ÃâàÃìçâ°Î©Ãº
u                        Ãí§ÃâàÃúÃÃêéâ°âÃè°â°Ã¸ÃÃîÏ
U                        Ãí§ÃâàÃΩìÃâçðåÃöÃÃâÃÃúââ°Ã¸ÃÃîÏ
.                        ÃáçççÃúÃÃêéâ°âÃè°â°Ã¸ÃÃîÏ
,                        â°Âªâ¢ÃõâÃèçÃöÃÃñÏÃêëÃáçççÃâçÃù¢ÃöÃfâÃÃFâÃÃtÃàñTÃüâ¢ÃâæÃëΩâ°ÂªÂ§
;                        ÃáçççÃâçÃù¢ÃöÃfâÃÃFâÃÃtÃàñTÃüâ¢ÃâæÃëΩâ°ÂªÂ§
"np                      ÃèñÃõûÃúÃÃêéè¨nè°ÃöÃÃàâ Ãô§(úìÃÃâ¤ÃÃ¥â«â°ââ Ãâ Ã²Ãúââ°âÃÃÃöè°ÃïâÃöÃÃàâ Ãô§ÃÃÃÃÃÏúåâ°âÃÃà¨â°ââ«9)
n                        ÃáçççÃâçÃù¢ÃöÃ/Ãàñ?Ãüâ¢ÃâæÃëΩâ°ÂªÂ§
N                        â°Âªâ¢ÃõâÃèçÃñÏÃêëÃáçççÃâçÃù¢ÃöÃ/Ãàñ?ÃëΩâ°ÂªÂ§

â°Ã¸Ã¹Ãâ Ã²ÃñáÃú¨ÃíåÃÃÃÃáâ«vi

ÃëΩâ°ÂªÂ§                         â°Ã¸Ã¹Ãâ Ã²Ãíå/ÃàñÃÃÃÃáâ«Ãìçâ°Î©Ãº
:w                       â°Ã¸Ã¹Ãâ Ã²Ãñáâ°Âªââ°Î©Ãâ°âçÃÃÃÃáâ«vi
:w file                  ÃâÃâ°Ã¸ÃÃîÏâ°Ã¸Ã¹Ãâ Ã²Ãú®fileâ°ââ â°Î©Ãâ°âçÃÃÃÃáâ«vi
:wqÃàñZZÃàñ:x              â°Ã¸Ã¹Ãâ Ã²Ãñáâ°ÂªâÃÏâÃÃÃÃáâ«vi
:q!                      â°âçâ°Ã¸Ã¹Ãâ Ã²Ãñáâ°ÂªâúåÃÃÃÃáâ«vi
:e!                      ÃîæúÃÃâÃÃúââ°Ã¸ÃÃîÏúåâ°ÂªÃ©â°âäè°â°Ã¸Ã¹Ãâ Ã²Ãñáâ°ÂªâúÃÃÃãÃÃçúñÃæë

viâ°ââ ÃöÃÃÃâðÏ

ÃÃâðϠ                        â°Î©ÃºÃî®
:set all                 ÃâìÃçâÃâÃÃúâÃÃâðÏ
:set nooption            ÃÃâ¥Ãóâ optionÃÃâðÏ
:set nu                  ÃÃèðåÃâçÃâìÃçâðåÃèâ
:set showmode            Ãòæçâ«ÃòÃÃæìÃÃâ¢Ã®°ÃºèÃøòÃòÃÃõøÃç¢Ã®°Ãºè
:set noic                Ãüâ¢ÃâæÃóâÃøΩÃïâ¢Ã§ÃÃâèÃÃô
:set list                Ãòæçâ«Ãàâð®Ã¨¶(^I)ÃíåðåÃâæè¶Ãèâ
:set ts=8                â°ââ«ÃñáÃú¨ÃæìÃÃâ¢ÃÃæÃΩÃtab stops
:set window=n            ÃÃæÃΩÃÃñáÃú¨Ãâ¢Ã³Ãè£Ãòæçâ«nðå

viÃöÃÃäâÃÃÃ

ÃÃâðϠ                        â°Î©ÃºÃî®
:.=                      ÃâìÃçâÃΩìÃâçðåÃöÃðåÃèâ
:=                       ÃâìÃçâÃñáâ°Âªââ°ââ ÃöÃðåÃïâ
^g                       Ãòæçâ«Ãñáâ°ÂªâÃêçâÃÃÃΩìÃâçÃöÃðåÃèââÃÃÃñáâ°ÂªâÃöÃÃêðåÃïâÃíåÃñáâ°Âªââ°Î©Ã§ÃΩÃÃöÃÃôæÃàÃÃÃî
:l                       â°Î©Ã¸Ãî®Ãâ Ã³ÃÃç"l"Ãùâ¢Ãòæçâ«ÃÃâçöÃöÃÃâÏÃÃäÃâ Ã³Ã¨¶ÃºåöÃÃàâð®Ã¨¶ÃíåÃç¢Ã°åè¶

Ãú®ÃñáÃú¨â°ââ ÃÃöâ°Î©Ã§ÃõÃêΩÃíåÃîæÃΩÃÃâ Ã¡ÃÃâ

ÃÃâðϠ                        â°Î©ÃºÃî®
{                        Ãú®Ã¨¨â°âÃÃàóÃèíÃÃâ¢{Ãùâ¢ÃÃöâ°Ïââ°âÃâ°ââ¢ÃõÃêΩ
[[                       ÃõûÃàâÃõÃêΩÃöÃúÃç¥Ã§Ã
[[                       ÃêëÃâçÃêÃàââ°âãâ°âÃâ°ââ¢ÃõÃêΩÃöÃúÃç¥Ã§Ã
m(a-z)                   Ãî®â°âÃâ°ââ¢Ãâ Ã³ÃÃçÃùâ¢Ãâ Ã¡ÃÃâÃΩìÃâçâ°Î©Ã§ÃΩÃúåöÃÃî®mzð®Ã§â«Ãâ Ã¡ÃÃâz
'(a-z)                   ÃâÃÃÃâÃâ Ã¡ÃêÃä®ÃàâÃåáÃÃöÃöÃÃâ Ã¡ÃÃâúåöÃÃî®'zð®Ã§â«ÃêÃä®Ãàâz

Ãú®viâ°ââ ÃøûÃéâ¢Ã°å

ÃÃâðϠ                        â°Î©ÃºÃî®
J                        ÃâÃâ°âãâ°âÃðåÃøûÃéâ¢ÃàâÃΩìÃâçðåÃöÃÃú´Ãâæ
nJ                       ÃøûÃéâ¢ÃêéÃù¢nðå

ÃÃâÃâ Ã¡ÃîæÃΩÃâ°âéñèÃÏïÃâÃÃï¥

ÃÃâðϠ                        â°Î©ÃºÃî®
H                        ÃâÃÃÃâÃâ Ã¡ÃêÃä®ÃàâñèÃÏïÃöÃðâðå
nH                       ÃâÃÃÃâÃâ Ã¡ÃêÃä®ÃàâñèÃÏïðâðåâ°âãÃöÃè¨nðå
M                        ÃâÃÃÃâÃâ Ã¡ÃêÃä®ÃàâñèÃÏïÃöÃâ°ââ Ãó¥
L                        ÃâÃÃÃâÃâ Ã¡ÃêÃä®ÃàâñèÃÏïÃöÃÃâ«Ã¯Ã°å
nL                       ÃâÃÃÃâÃâ Ã¡ÃêÃä®ÃàâñèÃÏïÃâ«Ã¯Ã°åâ°âäÃöÃè¨nðå
^e(ctrl+e)               ÃâÃñèÃÏïâ°âäêöâ°âÃðå
^y                       ÃâÃñèÃÏïâ°âãêöâ°âÃðå
^u                       ÃâÃñèÃÏïâ°âäêöÃçäðµ
^d                       ÃâÃñèÃÏïâ°âãêöÃçäðµ
^b                       ÃâÃñèÃÏïâ°âäêöâ°âÃðµ
^f                       ÃâÃñèÃÏïâ°âãêöâ°âÃðµ
^l                       ÃáçêòñèÃÏï
z-return                 ÃâÃÃΩìÃâçðåÃΩÃâ°ââ«Ã±èÃÏïÃöÃðâðå
nz-return                ÃâÃÃΩìÃâçðåâ°âãÃöÃè¨nðåÃΩÃâ°ââ«Ã±èÃÏïÃöÃðâðå
z.                       ÃâÃÃΩìÃâçðåÃΩÃâ°ââ«Ã±èÃÏïÃöÃâ°ââ Ã§Ã
nz.                      ÃâÃÃΩìÃâçðåâ°âäÃöÃè¨nðåÃΩÃâ°ââ«Ã±èÃÏïÃöÃâ°ââ Ã§Ã
z-                       ÃâÃÃΩìÃâçðåÃΩÃâ°ââ«Ã±èÃÏïÃöÃÃâ«Ã¯Ã°å
nz-                      ÃâÃÃΩìÃâçðåâ°âäÃöÃè¨nðåÃΩÃâ°ââ«Ã±èÃÏïÃöÃÃâ«Ã¯Ã°å

viâ°ââ ÃöÃshellÃΩ¨â°ÏâÃëΩâ°ÂªÂ§

ÃÃâðϠ                        â°Î©ÃºÃî®
:!command                ÃâÃðåshellÃöÃcommandÃëΩâ°ÂªÂ§ÃºåöÃ:!ls
:!!                      ÃâÃðåÃâçâ°âÃâ°ââ¢shellÃëΩâ°ÂªÂ§
:r!command               ÃêÃèñcommandÃëΩâ°ÂªÂ§ÃöÃÃæìÃÃâ¢ÃÏâÃèíÃÃâ¢ÃºåöÃ:r!lsâ°ÂºÃ¶ÃÃàÃâÃðålsúåÃÃâÃêéÃêÃÃâ¢ÃÃÃÃÃÏ
:w!command               ÃâÃÃΩìÃâçÃââ¤ÃºñÃæëÃñáâ°Âªââ°Î©Ãºâ°ââ«commandÃëΩâ°ÂªÂ§ÃöÃÃâ Ã¡ÃáÃÃæìÃÃâ¢ÃÏâÃâÃðåcommandÃëΩâ°ÂªÂ§ÃºåöÃ:w!grep all
:cd directory            ÃâÃÃΩìÃâçÃââ¢â°Î©ÃºÃõÃÃΩïÃõ¥ÃîÏâ°ââ«directoryÃâÃð®Ã§â«ÃöÃÃõÃÃΩï
:sh                      ÃâÃÃêÃÃä®â°âÃâ°ââ¢Ãâ Ãªshellúåâ°Î©Ã¸Ãî®^d(ctrl+d)ÃøîÃõûvi
:so file                 Ãú®shellîãÃâ«Ã¨fileâ°ââ ÃêÃÃâ¢ÃíåÃâÃðåÃëΩâ°ÂªÂ§

viâ°ââ ÃöÃÃÃèâ°âéú©ÃÃô
(ÃÃøÃÃçâ°Î©Ã¸Ãî®ÃéÃÃàâÃîÃÃíåè¶Ãèâúåâ°âçöÃâ°Î©Ã¸Ãî®Ãâ Ã³Ã¨¶KâÃÃVâÃÃgâÃÃqâÃÃvâÃÃ*âÃÃ=ÃíåÃäüÃÃΩÃîÃ)

ÃÃâðϠ                        â°Î©ÃºÃî®
:map key command_seq     ÃÃöâ°Ïââ°âÃâ°ââ¢ÃîÃÃùâ¢Ãøêðåcommand_seqúåöÃ:map e eaúåÃóâ ÃÃâ«â°ÂªÃâ°ÏàÃóâÃÃôÃÃΩÃèÃâ°Âªâ¢eÃêÃàââ°âÃâ°ââ¢Ãâ Ã³ÃöÃÃú´ÃâæÃùâ¢ÃøΩÃäâ ÃñáÃú¨
:map                     Ãú®ÃäâÃÃÃðåÃòæçâ«ÃâÃÃúâÃââ¤ÃÃöâ°ÏâÃöÃÃÃè
:umap key                Ãàâ Ãô§ÃÃâ¢ÃîÃÃöÃÃÃè
:ab string1 string2      ÃÃöâ°Ïââ°âÃâ°ââ¢Ãº©ÃÃôúåâ°Î©Ã¸ÃæóÃΩìÃèíÃÃâ¢string1ÃóâúåÃî®string2ÃõøÃç¢string1âÃÃÃΩìöÃÃèíÃÃâ¢ÃñáÃú¨ÃóâúåÃîÃÃÃâ¢string1ÃÃâÃêéÃåâEscÃîÃúåÃâ¥ÂªÃªüÃâ±ÃèíÃÃâ¢â°â«Ãstring2
:ab                      Ãòæçâ«ÃâÃÃúâú©ÃÃô
:una string              ÃèñÃâàstringÃöÃú©ÃÃô

Ãú®viâ°ââ Ãº©ÃøõÃñáÃú¨

ÃÃâðϠ                        â°Î©ÃºÃî®
^i(ctrl+i)Ãàñtab          ÃèíÃÃâ¢ÃñáÃú¨ÃóâúåÃèíÃÃâ¢ÃêÃä®ÃöÃÃÃΩÃâ«Â¶ÃºåÃêÃä®ÃÃΩÃâ«Â¶ÃòÃâ°â«Ã£ÃÃàÃÃöâ°ÏâÃâ¢Î©ÃöÃ
:set ai                  ÃâìúÃÃáâ¢Ãä®Ãº©Ãøõ
:set sw=n                ÃâÃÃêÃä®ÃÃΩÃâ«Â¶ÃÃæÃΩÃâ°ââ«nâ°ââ¢Ãâ Ã³Ã¨¶
n<<                      â°Î©Ã¸nðåÃÃΩÃêëÃâ¶ÃêÃä®â°âÃâ°ââ¢ÃÃΩÃâ«Â¶
n>>                      â°Î©Ã¸nðåÃÃΩÃêëÃèâ¥ÃêÃä®â°âÃâ°ââ¢ÃÃΩÃâ«Â¶Ãºåâ°Ã¦Ã£Ã¶Ã3>>Ãâ±ÃâÃÃéâ¢â°âãÃùâ¢ÃöÃâ°ââðåÃÃèðåÃÃΩÃêëÃèâ¥ÃêÃä®â°âÃâ°ââ¢ÃêÃä®ÃÃΩÃâ«Â¶

Ãâ«ÃªÃñáð£ <http://hily.me/blog/2006/04/vi-shortcut/>

Click Here!