diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-01-27 22:57:08 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-01-27 22:57:08 -0500 |
commit | d459a0891cfafbbb9e4a36af2a3e77ced96983f2 (patch) | |
tree | e98f431abf228b97bc1e68bca847c6a667d91df9 /runtime/vimrc_example.vim | |
parent | 130611fca3900276d4525e17ded47504d73b38a1 (diff) | |
parent | 71980676f0ab9e29bd8bc72791febe0d53d91921 (diff) | |
download | rneovim-d459a0891cfafbbb9e4a36af2a3e77ced96983f2.tar.gz rneovim-d459a0891cfafbbb9e4a36af2a3e77ced96983f2.tar.bz2 rneovim-d459a0891cfafbbb9e4a36af2a3e77ced96983f2.zip |
Merge pull request #4111 from nicdumz/vim-5a5f459
vim-patch:5a5f459
Diffstat (limited to 'runtime/vimrc_example.vim')
-rw-r--r-- | runtime/vimrc_example.vim | 4 |
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 |