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

Remapping keys can only be done globally

Open jceb opened this issue 14 years ago • 4 comments

If a user wants to change a keybinding for a vim-orgmode plug, he has to map the new binding in all buffers! This is because keybindings are only created for org-buffers.

Vim-orgmode should provide functionality to allow user specific mappings to be bound when entering an org-buffer.

jceb avatar Sep 27 '11 18:09 jceb

Just adding my support for this issue. =) It might also be nice if the default key mappings worked in console vim, as this might reduce the need to remap keys.

sethfowler avatar May 10 '12 22:05 sethfowler

+1 sfowler

joedicastro avatar Mar 30 '13 12:03 joedicastro

+1 in console vim, a lot of mappings do not work. also I tried to follow the doc to remap thanks to the plug and I could not get it to work. I get this when using the key I remapped

nmap <localleader>j @<Plug>OrgMoveSubtreeDownward

E354: Invalid register name: '~@<fd>'

if you have any clue about that...

gbataille avatar May 15 '13 19:05 gbataille

nmap <localleader>j @<Plug>OrgMoveSubtreeDownward

E354: Invalid register name: '~@<fd>'

if you have any clue about that...

I didn't really want to dig up this old ticket, but since I just stumbled across it myself: Working for me whithout the @-character:

nmap <localleader>j <Plug>OrgMoveSubtreeDownward

Either the documentation on this point is wrong or outdated.

pheraph avatar Apr 12 '19 13:04 pheraph