[Bug 899720] Re: gvim visual mode commands/operators not working

awesan 899720 at bugs.launchpad.net
Sat Dec 3 22:27:43 UTC 2011


On the other hand, short cut keys mapped in .vimrc file seem to work correctly in the Visual mode in gvim (and vim). For example, I have the following 2 short-cut keys defined to comment and uncomment the selected lines with "//" and they work fine on the lines selected in visual mode with "Shift+V"
vmap \c :s!^!//!<CR>  
vmap \u :s!^//!!<CR>

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to vim in Ubuntu.
https://bugs.launchpad.net/bugs/899720

Title:
  gvim visual mode commands/operators not working

Status in “vim” package in Ubuntu:
  New

Bug description:
  In gvim (in the GUI mode), after selecting text in visual mode
  (Shift+V) for example, typing any operator or command for visual mode
  (~ key for example to convert the case of the selected text) does not
  perform the command, but gvim goes to "Insert mode" and actually
  inserts "~" character, which is very very annoying. I verified that I
  have the latest gvim package (vim-gnome
  2:7.3.154+hg~74503f6ee649-2ubuntu3). I tried with and without
  "UBUNTU_MENUPROXY=0" while starting gvim and it is the same problem.
  "vim" (not the GUI mode) that I can start inside the shell does not
  have this problem. I use gvim (GUI mode) heavily since I use multiple
  tabs ("-p"). Please suggest me a solution/work-around.

  I am using Ubuntu:
  Description:	Ubuntu 11.10
  Release:	11.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/899720/+subscriptions




More information about the foundations-bugs mailing list