Saturday, October 23, 2010

Re: alt key mapping in insert mod

This problem is solved.

The following snippet works but generate additional characters.(from http://vim.wikia.com/wiki/Fix_meta-keys_that_break_out_of_Insert_mode)

for i range(97,122)
let c = nr2char(i)
exec "map \e".c." <M-".c.">"
exec "map! \e".c." <M-".c.">"
endfor

To solve the problems, I followed the instruction on http://superuser.com/questions/154491/utf-8-option-makes-alt-key-to-insert-accented-characters-in-vim-how-to-disable-i

After put the utf-8 encoding option after the snippet, every thing works well now


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: