jceb / vim-orgmode

Text outlining and task management for Vim based on Emacs' Org-Mode
http://www.vim.org/scripts/script.php?script_id=3642
Other
3.1k stars 266 forks source link

orgmode breaks <C-M> keybinding #270

Open mabbamOG opened 7 years ago

mabbamOG commented 7 years ago

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

gagbo commented 6 years ago

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

mabbamOG commented 6 years ago

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