You are not logged in.
Pages: 1
Hello,
Does anyone know if it is possible to bind Control + Enter to a function in the console version of vim?
I've tried a number of variations (e.g. <c-enter>, <c-cr>, etc) as suggested on some other threads discussing the issue, but so far have not had any luck.
Any ideas?
Keith
Keith
dotfiles
Offline
It's <C-M> for me, but to figure it out for your terminal, at a prompt (outside of vim) type Ctrl-V then Ctrl-Enter, and it will show you how it is read. It will display a ^? where the ? is a capital letter, translate that into the vimrc as <C-?>.
Last edited by Trilby (2013-06-14 03:17:15)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Hi Trilby,
Thanks for the suggestion. So when I try this in Xterm I get the same result as you and mapping to <C-M> works fine.
In terminator, however, the result is the null character, ^@, but mapping to "C-@" does not work.
Keith
dotfiles
Offline
Pages: 1