Monday, July 19, 2010

Re: gVim and scope key conflict

i am new to cscope as well.

it is said when moving the cursor to a C symbol and press "CTRL-SPACEBAR-s" will split a window showing its definition.

On Tue, Jul 20, 2010 at 12:56 PM, Tony Mechelynck <antoine.mechelynck@gmail.com> wrote:
On 20/07/10 05:14, Kevin Wu wrote:
Hi folks,

After installing cscope, I found that in gVim, CTRL+SPACE is like "w"
command, forwarding a word. So I cannot use the function of cscope.

However, this question does not exist in vim. No key mapping in .vimrc.

Any idea?

--
Best wishes,
Kevin Wu

--

You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

What function of cscope? Vim's cscope interface doesn't use Ctrl-Space AFAIK, it uses only the :cscope command (and a few options to set your preferences). Oh, and depending on your settings, you can make all tag commands invoke cscope too.

See
       :help :cscope
       :help if_cscop.txt
       http://vim.wikia.com/wiki/Cscope



If your console Vim doesn't treat Ctrl-Space the way gvim does, it probably means that either the terminal doesn't pass the Ctrl-Space keystroke to Vim, or else it passes it as something else -- on my system, in both konsole and the Linux console, Ctrl-Space gets passed as <Nul>, which I could get just as well with Ctrl-@ or Ctrl-J. In my gvim, Ctrl-Space goes forward a word, just like Ctrl-Right -- and Space does the same as the right-arrow key, so there's some kind of logic to it.


Best regards,
Tony.
--
"What's the use of a good quotation if you can't change it?"
               -- The Doctor



--
Best wishes,
Kevin Wu

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: