diff options
-rw-r--r-- | base/vimrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -243,6 +243,12 @@ nnoremap <leader>N :call NumberToggle()<cr> "autocmd InsertEnter * :set norelativenumber "autocmd InsertLeave * :set relativenumber +" Open to last position ====---- + +if has("autocmd") + au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif +endif + " Custom functions ====---- if filereadable(expand("~/.vimrc.local")) |