summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2016-11-30 19:22:04 -0500
committerTim Harder <radhermit@gentoo.org>2016-11-30 19:23:50 -0500
commitf75e7300cf7eba9070a39a6000e1099fb6a305cd (patch)
treed6f6ff6eef3cbb506335f8d4c6dbab1f9986774c /app-editors/vim-core
parentnet-wireless/cpyrit-opencl: fix the license #600956 (diff)
downloadgentoo-f75e7300cf7eba9070a39a6000e1099fb6a305cd.tar.gz
gentoo-f75e7300cf7eba9070a39a6000e1099fb6a305cd.tar.bz2
gentoo-f75e7300cf7eba9070a39a6000e1099fb6a305cd.zip
app-editors/vim-core: disregard user mappings when restoring cursor position
This fixes bug #598726.
Diffstat (limited to 'app-editors/vim-core')
-rw-r--r--app-editors/vim-core/files/vimrc-r52
1 files changed, 1 insertions, 1 deletions
diff --git a/app-editors/vim-core/files/vimrc-r5 b/app-editors/vim-core/files/vimrc-r5
index fdc316b4c35b..8143be5fb48d 100644
--- a/app-editors/vim-core/files/vimrc-r5
+++ b/app-editors/vim-core/files/vimrc-r5
@@ -167,7 +167,7 @@ augroup gentoo
autocmd BufReadPost *
\ if ! exists("g:leave_my_cursor_position_alone") |
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
- \ exe "normal g'\"" |
+ \ exe "normal! g'\"" |
\ endif |
\ endif