Можно ли сопоставить <C -;> с: в vim? - PullRequest
12 голосов
/ 04 октября 2011

Я использую capslock в качестве контроля, поэтому более естественно использовать как :, но noremap <C-;> : не работаетВозможно ли сделать такое отображение в vim?

1 Ответ

9 голосов
/ 05 октября 2011

От Vim FAQ (также доступно через этот красивый плагин ):

20.4. I am not able to create a mapping for the <xxx> key. What is wrong?

1) First make sure, the key is passed correctly to Vim. To determine if
   this is the case, put Vim in Insert mode and then hit Ctrl-V (or
   Ctrl-Q if your Ctrl-V is remapped to the paste operation (e.g. on
   Windows if you are using the mswin.vim script file) followed by your
   key.

   If nothing appears in the buffer (and assuming that you have
   'showcmd' on, ^V remains displayed near the bottom right of the Vim
   screen), then Vim doesn't get your key correctly and there is nothing
   to be done, other than selecting a different key for your mapping or
   using GVim, which should recognise the key correctly.

Попытка выше с <C-;> показывает, что vim / gvim не захватывает ...

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...