[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Re: Restoring '[m' to its original map/functionality.
From:       "Antoine J. Mechelynck" <antoine.mechelynck () belgacom ! net>
Date:       2005-02-19 7:58:34
Message-ID: 4216F1AA.5090302 () belgacom ! net
[Download RAW message or body]

Raja Koduru wrote:
> Hello,
> 
> I wanted to use basic [m,[M,]m,]M mappings on a cpp file. Just read 
> motion.txt, that is how I got to know about them. But then [m is not 
> behaving as expected. I did a :map [ and got the following listing:
> 
> n  [            @viw[
> v  [           *@<C-\><C-N>@=Surround('[', ']', 0, 0, '%', 0)<CR>
> o  [%          * v:<C-U>call <SNR>36_MultiMatch("bW", "o") <CR>
> v  [%            <Esc>[%m'gv``
> n  [%          * :<C-U>call <SNR>36_MultiMatch("bW", "n") <CR>
> 
> I use gvim-6.3.062(latest build) on xp. I have also installed Luc 
> Hermitte's c/c++ & template plugins collection. That is good one.
> 
> Is there anyway that I can restore the [ to the default behavior. I 
> tried with unmap and nunmap [ in _gvimrc. But gvim is reporting an error 
> saying that [ is not defined/found.
> 
> 
> Can anyone explain what '@viw[' means in the above listing. Please give 
> some instructions on how to find the filenames for mappings.
> 
> with thanks and regards,
> raja koduru
> 
> 
> 
> 
> 
> 
> 
> 
	@v	execute the contents of register v
	The rest may depend on what is in register v (":reg v" will tell you).

<SNR>36_ is how <SID> is represented in the 36th script you sourced. 
Find it in the output of ":scriptnames". My guess: matchit.vim. That 
plugin is quite useful but it is only sourced after you have installed 
it yourself (see ":help matchit-install"). However, I have it installed 
and I see the same mappings as yours for [% but nothing for [ alone. 
That must come from elsewhere. Do you know where the Surround() function 
is defined?

Best regards,
Tony.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic