aboutsummaryrefslogtreecommitdiff
path: root/runtime/vimrc_example.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/vimrc_example.vim')
-rw-r--r--runtime/vimrc_example.vim4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/vimrc_example.vim b/runtime/vimrc_example.vim
index 97f646b91a..48c7a3535a 100644
--- a/runtime/vimrc_example.vim
+++ b/runtime/vimrc_example.vim
@@ -34,10 +34,8 @@ augroup vimrcEx
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
- " Also don't do it when the mark is in the first line, that is the default
- " position when opening a file.
autocmd BufReadPost *
- \ if line("'\"") > 1 && line("'\"") <= line("$") |
+ \ if line("'\"") >= 1 && line("'\"") <= line("$") |
\ execute "normal! g`\"" |
\ endif