Tuesday, September 16, 2008

Some vim tips

1, MAP, eg.

map <F9> :w <ENTER> :!latex % <ENTER>

2. ^ and $

^ the beginning of line
--------------------------------------------
for example:
replace the begin of line to something: % s/./something/
or % s/^/something/
--------------------------------------------
$ the end of line

No comments: