vim-orgmode icon indicating copy to clipboard operation
vim-orgmode copied to clipboard

orgmode breaks <C-M> keybinding

Open mabbamOG opened this issue 8 years ago • 2 comments

i have set in my .vimrc like so

map <c-m> :TagbarToggle<CR>

and as long as it's mapped to c-m, whenever i'm in an org buffer it will not work. instead, it looks like vim-orgmode has it mapped to insert a new heading the first time you press it, and just a newline all subsequent times

mabbamOG avatar Mar 01 '17 21:03 mabbamOG

It is weird in the first place that you can map something to ^M and have the TagbarToggle as it is the ascii control sequence for carriage return. So the behaviour you're seeing is actually what I'd expect.

Or at least, you should have a TagbarToggle each time you hit Enter.

See :h keycodes and more specifically the :h carriage-return line

gagbo avatar Jan 15 '18 10:01 gagbo

Still, I believe it did work in other buffers..

mabbamOG avatar Feb 03 '18 07:02 mabbamOG