On Thu, 26 Jan 2012, Dotan Cohen wrote:
On Thu, Jan 26, 2012 at 21:00, Benjamin R. Haskell <[email protected]> wrote:
[...] My line of thinking is to enable CapsLock in VIM itself, as
opposed to in the OS, so that it will only affect input mode. Can
this be done?
See: http://vim.wikia.com/wiki/Insert-mode_only_Caps_Lock
The gist: use a keymap, which doesn't affect normal/visual mode, but
does change keys in insert mode and searches.
[...]
Thank you Ben, that is exactly what I was trying to do.
No problem.
One thing that I do not understand is where the Ctrl-6 mapping is
defined. I would like to change that to something else because I use
Ctrl-6 to go back to the original file after gf.
Ctrl-^ is the built-in key for toggling keymaps, AFAIK.
It might be different between normal and insert mode, though, because
Ctrl-6 is listed at:
:help CTRL-^
(which is a different action), but not at:
:help i_CTRL-^
If you want that bound to the F1 key, for example, you can do:
imap <F1> <C-^>
--
Best,
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