mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
vim-patch:5a5f459
Original commit: https://github.com/vim/vim/commit/5a5f459 commit 5a5f45917dbf542cb00617fa5ef70a14898495dd Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 13 12:43:06 2015 +0200 Updated runtime files. (1) Merged manually vimrc_example.vim (2) Left out README.txt, doc/tags, doc/todo.txt, tutor/tutor.de, tutor.de.utf-8, ga.po
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user