Thanks! It's useful.

It seems that there is not a very easy way to finish it.


On 8月14日, 下午3时12分, Tony Mechelynck <antoine.mechely...@gmail.com>
wrote:
> On 14/08/10 05:13, eliweiq001 wrote:
>
> > I want to :iunmap all the maps which begins with<Leader>
> > How can I do it easily?
>
> AFAIK, you can do it but not by just snapping your fingers. Here are the
> basic steps, implementation is left as an exercise to the reader.
>
> The command
>         :0verbose imap <Leader>
>
> will list all those mappings (without the lines saying where they were
> set, even if you have set 'verbose' to a nonzero value). ":help
> map-listing" says how to interpret that listing.
>
> See
>         :help :redir
>
> about how to capture that output in (e.g.) a file
>
> You will then need to edit the captured output (one or more uses of the
> :s[ubstitute] command can do it, you don't have to do it by hand) to
> make it say iunmap {lhs} for every {lhs} in the list
>
> Then :source the resulting script.
>
> Best regards,
> Tony.
> --
> No children may attend school with their breath smelling of "wild onions."
>                 [real standing law in West Virginia, United States of America]

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

Reply via email to