Saturday, January 22, 2011

Re: question about c.vim

On 23/01/11 4:50 AM, Jeri Raye wrote:
> Hi,
>
> I'm using gvim on windows XP.
> The version is 7.3 and it has a gui apparence.
>
> I'm trying to use the c.vim plugin.
> In the gui a Menu "C/C++" is added by the plugin and there are a lot
> of c/c++ commands that can be found there.
> For example:
> - if you do C/C++ -> Comments -> end-of-line comment
> you get the text "/* */" (without the qoute marks), and with the
> cursor in the middle of it.
>
> So far so good.
> Apparently you can also give this end-of-line comment with a few key strokes.
> In the menu these keystrokes are told, as the menu item fully looks
> like "end-of-line comment \cl".
>
> How does that work?
>
> - when I type \cl in normal mode, I come into INSERT-mode without the
> end-of-line comment
> - when I type \cl in execute mode (meaning :\cl<enter>) , I get the
> error message "E10: \ should be followed by /, ? or&"
>
> Is the \ in \cl some kind of default in vim you can specify?
> If so how can you echo that default, so that I can verify if that is
> by me also a \ ?

Yeah, it's likely to be mapleader or maplocalleader.

:echo mapleader
:echo maplocalleader
:help mapleader
:help maplocalleader

Ben.

--
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: