If you want to remap keys in vim, it is often recommended to switch to insert mode, press Ctrl + V , and then enter the key that you want to remap. In this case, I get the Escape character ( Ctrl + [ ), followed by } .
I like to use the <A -}> notation, but you could solve this problem by editing the .vimrc file, entering the text map , then pressing Ctrl + V and pressing Alt + Shift +] and then adding gt >. You get a string like
map ^[} gt
(but with the actual Escape character, not ^ and a [ , as I should have typed here), and it will work.
PS When I tried this, Alt + Shift + [ worked fine, but Alt + Shift +] seems to be already used in my copy of vim. I'm not sure what he is doing, but reassignment does not work for me. When i type
:map <A-}>
he prints No mapping found.
steveha
source share