Wednesday, May 14, 2014

How to enable old closing position in Vim

Please add below lines in Vimrc


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