restoring last edited position
The simple trick from vim's online help is used to send cursor to last edited line in the file upon reopening.
au BufReadPost * if line("'\"") > 0 &&
\ line("'\"") <= line("$") | exe "normal g'\"" | endif
Type in vim ":help :au" for more info.
No comments:
Post a Comment