obsidian-vimrc-support icon indicating copy to clipboard operation
obsidian-vimrc-support copied to clipboard

Remap to <Tab> key doesn't work

Open d9k opened this issue 1 year ago • 1 comments

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).

d9k avatar Dec 16 '24 21:12 d9k

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.

ko-shin-ryo avatar Jan 08 '25 12:01 ko-shin-ryo