vimrc: jump to last position after opening
This commit is contained in:
parent
54570f8c34
commit
6f1739f345
|
@ -1,3 +1,4 @@
|
|||
bin/dhook.*
|
||||
dep.sh
|
||||
.netrwhist
|
||||
|
||||
|
|
|
@ -55,4 +55,8 @@ set formatoptions-=t
|
|||
" 2 space tabbing for nix files
|
||||
autocmd Filetype nix setlocal ts=2 sw=2 expandtab
|
||||
|
||||
" jump to last position after opening
|
||||
if has("autocmd")
|
||||
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue