tv vim: remember last position

This commit is contained in:
tv 2023-01-17 01:05:26 +01:00
parent dc3f5c6838
commit ab43821bb1

View File

@ -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
'';
}