tv vim: remember last position
This commit is contained in:
parent
dc3f5c6838
commit
ab43821bb1
@ -173,5 +173,11 @@ with import ./lib;
|
||||
nnoremap <C-S-ScrollWheelUp> <PageUp>
|
||||
nnoremap <C-S-ScrollWheelDown> <PageDown>
|
||||
endif
|
||||
|
||||
# remember last position
|
||||
autocmd BufReadPost *
|
||||
\ if line("'\"") > 0 && line("'\"") <= line("$") |
|
||||
\ exe "normal! g`\"" |
|
||||
\ endif
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user