obsidian-vimrc-support
obsidian-vimrc-support copied to clipboard
Remap to <Tab> key doesn't work
I have <space>> (space + right angle bracket) mapped to indent command in NVim & VSCodeVim. Wanted to map it in Obsidian also for consistency.
I tried following settings, which doesn't work:
nnoremap <Space>> <tab>
nnoremap <Space>> <Tab>
nnoremap <Space>> <C-]>
Also need to remap <Space>< to Shift-Tab (dedent).
Please try the following configuration:
unmap <Space>
nnoremap <Space>> >>
nnoremap <Space>< <<
- It seems that Tab key mapping cannot be configured because it is not defined in codemirror-vim, which is used for implementing Vim keybindings in Obsidian.
- Instead, use
>>and<<commands which correspond to "increase indent" and "decrease indent" in Vim keybindings.