Created
June 28, 2011 15:56
-
-
Save larsen/1051463 to your computer and use it in GitHub Desktop.
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
| " 5.5. How do I configure Vim to open a file at the last edited location? | |
| " Vim stores the cursor position of the last edited location for each buffer | |
| " in the '"' register. You can use the following autocmd in your .vimrc or | |
| " .gvimrc file to open a file at the last edited location: | |
| au 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