Vim frontmatter navigation mappings

What I’m trying to do

Hello, I am trying to remap the basic vim movement keys for Colemak keyboard layout (hjkl → neio). I did this succesfully with the vimrc plugin, but the frontmatter navigation is still using the default hjkl movement. Does someone know how to remap this?

Relevant part from my vimrc:

nnoremap n h
nnoremap e gj
nnoremap i gk
nnoremap o l

Is there a way to make obsidian treat the yaml frontmatter similar to how it treats the rest of the file? This would potentially fix the issue.

Things I have tried

I couldn’t find any relevant commands in the app hotkeys options. I tried looking for relevant obsidian specific vim commands, but realized that command mode cannot even be opened ‘:’ when frontmatter is focused.

I figured out that source mode actually makes obsidian treat the frontmatter as it would the rest of the file. However, I would still like to know if there is a way to fix the mappings in non-source mode.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.