Vim :q command

I’m very excited that we finally have the : command line in vim mode! One of the last big things Obsidian has been missing for me. One notable missing feature is the ability to type :q to close the current file/split/window
I admit I have no idea how much actual control you have over the command line, since it comes with codemirror, but if you can make this work my muscle memory will be very happy

5 Likes

I agree it should come by default, as :q → cose active pane.

I found a workaround using the community plugin “Vimrc Support”
adding this to my vimrc:
exmap q obcommand workspace:close

I’m still looking how to map :qa but im making progress.
Hope it helps.

3 Likes

Use case or problem

I have muscle memory from vim and VScode in vim mode to use :q to close the current file

Proposed solution

:q is currently unmapped. Map it to close note by default

2 Likes