Open tpaixao opened 9 years ago
As a workaround you can press ^T
in insert mode to indent the created heading. A fitting hotkey would be of course the best solution.
@seece that's the way to go. When a new heading is inserted orgmode takes you into insert mode then it's easy to change indentation with ^T
or ^D
. If you have a suggesting for a binding, I'll add it.
Here's a set of keybindings that I think would suit vim-orgmode well: normal mode: CR new Heading (same level) below S-CR new subheading below C-CR new heading above C-S-CR new subheading above (if possible)
maybe the last one would be tricky to implement and potentially less useful.
is there any list of functions implemented in vim-orgmode? and is there a tutorial on how to assign keybindings to these functions?
thanks for all the comments
PS: I just realized that github did not display my hotkeys in vim style (I guess it interprets them as html tags - removed the enclosing brackets to make sure they display)
Thanks for your suggestions. At least the <CR>
mapping exists already. One issue with the other and also the current mappings is that they don't work in CLI vim. I guess combinations with <leader>
and <mapleader>
and other keys like c
would be the way to go.
Inserting new subheading is one of the most often things I do. Has something changed in the meantime, i.e. is there a keybinding for this now? If not, maybe one could go for <S-CR>
, as it currently does the same as <CR>
:
<S-CR> - insert heading below, taking over children
<CR> - insert heading below, taking over children
Pressing on a heading produces a new heading at the same level, that's fine. But I would expect that pressing S-CR (or some variation of that) would produce a new subheading. Instead it also produces a new heading at the same level. Shouldn't this be the default behavior?
How do I remap these keys? The docs are not very clear on how to remap keys to specific functions (in part because there is no description of the available functions)
thanks for any help.