Showing posts with label vi. Show all posts
Showing posts with label vi. Show all posts
Saturday, October 13, 2012
Vim setting
set tabstop=4
set shiftwidth=4
set number
set backupdir=c:\vim_backup
vi/vim tips
1.Copy and paste
In normal model:
10yy --Copy next 10 lines
p --Paste the content
2. Tab multiple lines
v -- Go into Visual Mode
shift + direction(h,j,k,l or arrows) -- select lines
> or < -- indent or unindent
In normal model:
10yy --Copy next 10 lines
p --Paste the content
2. Tab multiple lines
v -- Go into Visual Mode
shift + direction(h,j,k,l or arrows) -- select lines
> or < -- indent or unindent
Subscribe to:
Posts (Atom)