Vim gt and gT to change tabs

Use case or problem

Currently the Vim mode of Obsidian doesn’t allow you to change tabs (which are amazing btw ty!) using the hotkeys gt for next tab and gT for previous tab like in normal Vim.

Proposed solution

Add gt hotkey for next tab and gT for previous tab, as in Vim.

3 Likes

See GitHub - esm7/obsidian-vimrc-support: A plugin for the Obsidian.md note-taking software for how to do that

2 Likes

Thanks! However I’m hoping it’s eventually possible to have the native vim keybindings for changing tabs without the need of a plugin.

1 Like

I’ve been using Obsidian for the last year and this definitely messes with my muscle memory every time I’m using it versus my text editor. Would love for this to be fixed without using a plugin.

2 Likes

Came up with .obsidian.vimrc for obsidian-vimrc-support plugin:

exmap checkmark obcommand editor:cycle-list-checklist
nmap m :checkmark

exmap tabnext obcommand workspace:next-tab
nmap gt :tabnext

exmap tabprev obcommand workspace:previous-tab
nmap gT :tabprev

Also

" Yank to system clipboard
set clipboard=unnamed