I have an annoying issue with the CTRL+] key combination in Vim on my Macbook. I have a Scandinavian keyboard, so I do not have a ] key - normally I make ] by ALT+9. This is an issue when I use ctags for example, as there is no simple way to jump around in files. I tried to use map <C-9> <C-]> in my .vimrc, but this does not seem to work. I did get it to work with <C-K>, but I would much rather prefer <C-9> (or maybe <D-9> - that is: Apple command key+9). How can I fix this?
|
| |||
feedback
|
migrated from stackoverflow.com Aug 29 '11 at 23:57
This question came from our site for professional and enthusiast programmers.
|
Search google for an american qwerty keyboard diagram then compare it with your actual keyboard. The key located at the same spot on your keyboard will work. On a french keyboard, $ is at exactly the same place as ] so I must type In your case, it's probably ^ยจ~ | |||
feedback
|
|
Try this:
Of course, replace | |||
|
feedback
|
|
Closest I've been able to get is with Ctrl Numpad 9:
From what I can tell the regular number keys are not available for mapping. The function keys work just fine though, e.g. Ctrl F9:
| |||
|
feedback
|