simple examples of how to

Thursday, October 20, 2011

[VIM] how to make vim remember the last line of the open file

just add the following in the .vimrc

autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif

No comments:

Post a Comment