I want to map Alt+Shift+] and Alt+Shift+[ to gt and gT (so it works like on Mac)
How do I do it because it doesn’t seem to work if I simply do this:
map <A-S-]> gt
Somehow ] needs to be escaped or something
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is nothing wrong with your definition there. Vim will correctly map that combination but it doesn’t do it in quite the way you expect. What that mapping essentially says is
On a standard keyboard the ] character when combined with Shift will produce
}. This means that Vim won’t ever see the ] in combination with Shift but instead sees just}. You can leverage this though to get the behavior you’re looking for. Try the following mappings instead (assuming standard QWERTY keyboard)