1
0
Fork 0
mirror of synced 2024-11-23 09:15:35 -05:00

Enable jumping to the last position in file on open

This commit is contained in:
Daniel Gitelson 2015-10-22 10:32:56 +03:00 committed by Siew Yi Liang
parent 8b8070f537
commit 53cef2f635

View file

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