More Vim

approved

by Colin Lienard

This plugin has not been manually reviewed by Obsidian staff. Adds missing Vim features such as surround, multi-cursor, scrolloff, gd, gx, and more.

33 downloadsUpdated 8d ago0BSD

More Vim

Version

A plugin that adds Vim features missing from Obsidian's built-in Vim mode

Demo


Features

FeatureBehavior
Vim surroundAdds ys, ds, cs, and visual-mode S for adding, deleting, and changing surrounding characters. Supports brackets, quotes, and the usual aliases (b, B, r).
Multi-cursor motionsWhen more than one cursor is active in normal mode, the motions h j k l w W b B e E $ ^ run per cursor. Escape collapses back to the main cursor.
Mod-DEmpty selection → select the word under the cursor (viw). Non-empty selection → find the next occurrence and add a cursor there. Wraps to the top of the file when there are no more matches below. Toggleable in settings.
scrolloffKeeps N lines of context above and below the cursor, like Vim's scrolloff option. Configurable in settings.
System clipboard registerMirrors yanks and puts to the OS clipboard via the unnamed (") register, and re-syncs on window focus. Toggleable in settings.
oOpen a new line while preserving Markdown list continuation. The built-in Vim o breaks lists; this one keeps the bullet/number going.
gdOpen the internal link under the cursor.
gxOpen the external URL under the cursor in a new browser tab.

[!IMPORTANT] Mod-D requires you to disable Obsidian's built-in hotkey first. Go to Settings → Hotkeys, search for the command currently bound to Mod-D, and unbind it. Otherwise Obsidian intercepts the key before this plugin can see it.

License

0BSD © Colin Lienard

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.