I found the workaround for mapping Alt key on gnome-terminal in this topic. After editing the vimrc file, my Vim now recognizes Alt–j as ê (which is a non-english character), how can I fix it?
Thanks
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.
As explained in the referenced topic, for Vim, Alt + character combinations are represented by ASCII characters with the 8th bit set, which is identical to certain special characters (such as
ê). As long as you don’t need to type those characters (e.g. because you write in French :-), you can ignore this curiosity; just write your mapping with either<A-j>or the literalênotation (but after any:set encoding=...in your .vimrc, because that affects how these are interpreted).