Created
July 6, 2010 15:08
-
-
Save shvechikov/465495 to your computer and use it in GitHub Desktop.
Vim: Return to last edit position
This file contains 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
" Put to .vimrc | |
" Return to last edit position (You want this!) *N* | |
autocmd BufReadPost * | |
\ if line("'\"") > 0 && line("'\"") <= line("$") | | |
\ exe "normal! g`\"" | | |
\ endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment