[Vimperator] version 0.5 -- how do I toggle a setting

Doug Kearns dougkearns at gmail.com
Sun Aug 19 11:17:48 PDT 2007


On 8/18/07, Sitaram Chamarty <sitaramc at gmail.com> wrote:
> Hello,
>
> I love 0.5 -- I have too many keywords in my bookmarks and constantly having
> to use Ctrl-L first then type in my keyword was becoming a pain.
>
> I also love the mapping commands.  My question:  I currently have to use two
> keys to toggle the "um" mapping (which I use often).  Like so:
>
>     map \ :set   um<Enter>
>     map | :set noum<Enter>
>
> Is there a way I can use one key that would toggle the setting on each
> press?

Well you could write a javascript function and source it from your
.vimperatorrc or .vimperator/plugin directory.

However, I expect I will write a :set inv{option} implementation this
week as it's something I'd like too.  So with any luck it'll appear in
0.5.1. :)

Regards,
Doug


More information about the Vimperator mailing list