- Update suse.vimrc to stop remembering file positions for git
commit cases. This fixes bnc#538369 and based on msys commits 1ef258e and 65ffc90. OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=251
This commit is contained in:
parent
b4f1603c9e
commit
cc4df34c0a
21
suse.vimrc
21
suse.vimrc
@ -265,16 +265,17 @@ endif
|
|||||||
map! <Esc>[3~ <Delete>
|
map! <Esc>[3~ <Delete>
|
||||||
map <ESC>[3~ x
|
map <ESC>[3~ x
|
||||||
|
|
||||||
" Only do this part when compiled with support for autocommands.
|
" Only do this part when compiled with support for autocommands.
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
" When editing a file, always jump to the last known cursor position.
|
"Remember the positions in files with some git-specific exceptions"
|
||||||
" Don't do it when the position is invalid or when inside an event handler
|
autocmd BufReadPost *
|
||||||
" (happens when dropping a file on gvim).
|
\ if line("'\"") > 0 && line("'\"") <= line("$")
|
||||||
autocmd BufReadPost *
|
\ && expand("%") !~ "COMMIT_EDITMSG"
|
||||||
\ if line("'\"") > 0 && line("'\"") <= line("$") |
|
\ && expand("%") !~ "ADD_EDIT.patch"
|
||||||
\ exe "normal g`\"" |
|
\ && expand("%") !~ "addp-hunk-edit.diff"
|
||||||
\ endif
|
\ && expand("%") !~ "git-rebase-todo" |
|
||||||
|
\ exe "normal g`\"" |
|
||||||
|
\ endif
|
||||||
endif " has("autocmd")
|
endif " has("autocmd")
|
||||||
|
|
||||||
" Changed default required by SuSE security team--be aware if enabling this
|
" Changed default required by SuSE security team--be aware if enabling this
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 29 10:45:52 UTC 2015 - idonmez@suse.com
|
||||||
|
|
||||||
|
- Update suse.vimrc to stop remembering file positions for git
|
||||||
|
commit cases. This fixes bnc#538369 and based on msys commits
|
||||||
|
1ef258e and 65ffc90.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 15 11:32:14 UTC 2015 - idonmez@suse.com
|
Thu Jan 15 11:32:14 UTC 2015 - idonmez@suse.com
|
||||||
|
|
||||||
|
2
vim.spec
2
vim.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package vim
|
# spec file for package vim
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
Loading…
Reference in New Issue
Block a user