4

Restore cursor to file position in previous editing session

view full story
linux-howto

http://vim.wikia.com – less stuff ← Older revision Revision as of 02:29, December 1, 2010 (One intermediate revision not shown) Line 22: Line 22: set viminfo='10,\"100,:20,%,n~/.viminfo set viminfo='10,\"100,:20,%,n~/.viminfo - function! s:ResCur() + function! ResCur() if line("'\"") <= line("$") if line("'\"") <= line("$") execute "normal! g`\"" execute "normal! g`\"" Line 30: Line 30: if has("folding") if has("folding") - function (HowTos)