Bugzilla – Bug 1190332
Problem with "normal g`\"" in suse.vimrc in case g is already in use
Last modified: 2022-03-16 13:32:52 UTC
I have received a bug report via mail from Enno Nagel: <cite> in der Datei /usr/share/vim/vim80/suse.vimrc (vormals /etc/vimrc) befindet sich seit geraumer Zeit der autocmd autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") \ && expand("%") !~ "COMMIT_EDITMSG" \ && expand("%") !~ "ADD_EDIT.patch" \ && expand("%") !~ "addp-hunk-edit.diff" \ && expand("%") !~ "git-rebase-todo" | \ exe "normal g`\"" | \ endif Der Befehl normal g` anstelle von normal! g` führt dabei dazu, dass jeder Anweder, der g` durch n(ore)map anders bindet, eine Fehlermeldung beim Öffnen jedes Buffers erhält. Daher wäre es vorzuziehen, den autocmd nicht zu laden. </cite> it looks like Enno uses in its own ~/.vimrc a line with n(ore)map on g` which interferes with the autocmd in suse.vimrc Shoudn't we use "normal! g`\""
Add OSC maintainer to CC