Package: vim Version: 2:7.4.488-7 Severity: normal Tags: patch Dear Maintainer,
When pressing <Shift+Insert> in GVim, the current behaviour in jessie is: - Pasting from the "* register, if GVim was started by running 'gvim'; - Inserting the literal text "<S-Insert>" (9 characters), if GVim was started by using the ":gui" command from console vim. I expected both cases to behave the same way. This is due to how runtime/debian.vim installs GUI-specific mappings; a suggested patch is attached. -- Package-specific info: --- real paths of main Vim binaries --- /usr/bin/vi is /usr/bin/vim.gtk /usr/bin/vim is /usr/bin/vim.gtk /usr/bin/gvim is /usr/bin/vim.gtk -- System Information: Debian Release: 8.1 APT prefers stable APT policy: (990, 'stable'), (500, 'testing-updates'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages vim depends on: ii libacl1 2.2.52-2 ii libc6 2.19-18 ii libgpm2 1.20.4-6.1+b2 ii libselinux1 2.3-2 ii libtinfo5 5.9+20140913-1+b1 ii vim-common 2:7.4.488-7 ii vim-runtime 2:7.4.488-7 vim recommends no packages. Versions of packages vim suggests: ii exuberant-ctags [ctags] 1:5.9~svn20110310-8 pn vim-doc <none> pn vim-scripts <none> -- debconf-show failed
# HG changeset patch # User Daniel Shahaf <d...@daniel.shahaf.name> # Date 1437927330 0 # Sun Jul 26 16:15:30 2015 +0000 # Branch unstable # Node ID bda864731bd340f39ed7d7456d6e9147ad41f918 # Parent a8e0d6f35b38333735f82dbc8082c0759af93461 debian.vim: Apply GUI settings also when using the ":gui" command. diff -r a8e0d6f35b38 -r bda864731bd3 debian/runtime/debian.vim.in --- a/debian/runtime/debian.vim.in Sat Jun 13 01:16:15 2015 -0400 +++ b/debian/runtime/debian.vim.in Sun Jul 26 16:15:30 2015 +0000 @@ -42,8 +42,8 @@ endif endif -if has('gui_running') +if has('gui') " Make shift-insert work like in Xterm - map <S-Insert> <MiddleMouse> - map! <S-Insert> <MiddleMouse> + autocmd GUIEnter * if mapcheck("<S-Insert>", "nvso") == "" | execute "map <S-Insert> <MiddleMouse>" | endif + autocmd GUIEnter * if mapcheck("<S-Insert>", "ic") == "" | execute "map! <S-Insert> <MiddleMouse>" | endif endif