]> git.draconx.ca Git - vimconf.git/blobdiff - plugin/keymap.vim
Tighten constraints on line when restoring last file position.
[vimconf.git] / plugin / keymap.vim
index f53735fb270dd9e9561627e60706438c496fdda8..48fe1422c47a58766b232e8eef421ba88b134f8e 100644 (file)
@@ -17,6 +17,6 @@ let g:leave_my_cursor_position_alone=1
 
 " Jump to last cursor position when editing a file.
 autocmd BufReadPost *
-       \ if line("'\"") > 0 && line("'\"") <= line("$") |
+       \ if line("'\"") > 1 && line("'\"") <= line("$") |
        \       execute "goto" line2byte(line("'\"")) |
        \ endif