I'm trying to map
<c-y>, (from zencoding-vim) to
map <C-m> <C-y>, map <C-m> <C-y>,<cr>
But doesn't seems to be working. Maybe it's something with the comma?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
It's not the comma, it's ctrlm which is the terminal control sequence for
return and the same as pressing the return key. Try typing
ls in your
terminal and press ctrlm. You'll run into the same problem trying to map
ctrlh, which is the terminal control sequence for backspace.
This is not a Vim issue since Vim can't distinguish between ctrlm
return` key presses.