-
-
Save lbzhang/d0af2b94f7ff91796a0aeeba074f9ccd to your computer and use it in GitHub Desktop.
VIM: Remember last position in file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Remember position of last edit and return on reopen | |
| if has("autocmd") | |
| au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif | |
| endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment