Thursday, March 18, 2010

Re: set keymap to none/default

On Mar 18, 5:08 pm, Gary Johnson <garyj...@spocom.com> wrote:
> On 2010-03-18, Kenneth Reid Beesley wrote:
>
>
>
>
>
> > I've successfully written a number of keymap files, and I
> > successfully choose them with the set command, e.g.
>
> > :set keymap=myKeymapFile_utf-8
>
> > and I know that  CTRL-^  will toggle back and forth between the
> > current keymap and the previous keymap.
>
> > My Problem:  I often use multiple keymaps, one after another, and
> > sometimes I need to switch from using the currently active keymap,
> > whatever it might be, back to the neutral keymap (or lack of a
> > keymap).  CTRL-^ toggles me back to the previous keymap, which
> > might not be the neutral one.
>
> > Question:  How do I explicitly "turn off" keymap usage? or 'set
> > keymap' to some neutral value?
>
> According to ":help keymap", the default is "", so either
>
>     :set keymap=
>
> or
>
>     :let &keymap = ''
>
> should do it.  I don't know anything about keymaps, so I haven't
> verified this.
>
> HTH,
> Gary

I had already tried

:set keymap=
and
:set keymap=""
without success. But your

:let &keymap=""

(adding a second double quote) worked.

Many thanks,

Ken

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

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments:

Post a Comment