Skip to content

Commit

Permalink
Restore the last known cursor position of files upon opening.
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Sep 23, 2010
1 parent ca13ee8 commit 65bde87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vimrc
Expand Up @@ -475,6 +475,10 @@ endif " has("autocmd")

" }}}

" Restore cursor position upon reopening files {{{
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
" }}}

" Common abbreviations / misspellings {{{
source ~/.vim/autocorrect.vim
" }}}
Expand Down

0 comments on commit 65bde87

Please sign in to comment.