mirror of
https://github.com/amix/vimrc
synced 2024-11-15 00:17:07 +00:00
Enable jumping to the last position in file on open
This commit is contained in:
parent
9771ce2f4d
commit
e7228660f0
1 changed files with 5 additions and 0 deletions
|
@ -429,3 +429,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
|
||||||
|
|
Loading…
Reference in a new issue