Vi Command(Usage)

# Record and Play(Repeat)
qa ; start record
q ; stop record
@a ; play(repeat)
98@a ; play(repeat) 98 times
ctrl+a ; incremental number at a number character cursor

 

#Copy And Paste With A Slot Registered
(Using an ‘a’ Slot.)
“ay
“ap

 

#Character Case Toggle(Uppercase Lowercase)
gU : uppercase
gu : lowercase
~ : toggle

 

#Visual mode selection
v : visual mode selection
ctrl + v : visual mode virtical selection

 

#Convert to Lowercase
v : visual mode selection
(and then) u

gu

 

#Convert to Uppercase
v : visual mode selection
(and then) U

gU

 

#Cscope & Ctags Update in vim window
:cscope -Rbq
:cs reset

 

#Screen Up/Down
Ctrl+y (Screen Up)
Ctrl+e (Screen Down)
zl (Screen Right)
zh (Screen Left)
zL (Screen Right)
zH (Screen Left)
zs (Screen Right)
ze (Screen Left)

 

#Split windows
ctrl+wv (Vertical)
ctrl+ws (Horizontal)
ls (Show current buffers)
ctrl+wl / ctrl+wh / ctrl+wj / ctrl+wk (Navigate windows)
ctrl+wr (Shift up/down or left/right)
ctrl+ww (Iterate windows)
ctrl+w + shift+h/l/j/k (Move window)

Advertisements
Vi Command(Usage)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s