Thursday, October 2, 2014

VIM

Auto indent:
set smartindent
Make tabs into spaces:
set tabstop=4
set shiftwidth=4
set expandtab
Go to End of line:
$
Go to beginning of the line:
0
Go to end of file:
:$ <return>
String replacement:
:%s/foo/bar/g
boo boo
gaga gaga

No comments:

Post a Comment