Enable jumping to the last position in file on open

pull/138/head
Daniel Gitelson 8 years ago
parent 9771ce2f4d
commit e7228660f0
  1. 5
      vimrcs/basic.vim

@ -429,3 +429,8 @@ function! <SID>BufcloseCloseIt()
execute("bdelete! ".l:currentBufNum)
endif
endfunction
" Make VIM remember position in file after reopen
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif

Loading…
Cancel
Save