More Vim

by Colin Lienard
5
4
3
2
1
Score:ย 30/100

Description

๐Ÿ”ฎ Adds missing Vim features to Obsidian, such as surround, multi-cursor, scrolloff, gd, gx, and more

Reviews

No reviews yet.

Stats

6
stars
946
downloads
1
forks
148
days
146
days
146
days
5
total PRs
0
open PRs
0
closed PRs
5
merged PRs
1
total issues
1
open issues
0
closed issues
21
commits

Latest Version

5 months ago

Changelog

README file from

Github

More Vim

Version

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

Demo


Features

Feature Behavior
Vim surround Adds 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 motions When 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-D Empty 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.
scrolloff Keeps N lines of context above and below the cursor, like Vim's scrolloff option. Configurable in settings.
System clipboard register Mirrors yanks and puts to the OS clipboard via the unnamed (") register, and re-syncs on window focus. Toggleable in settings.
o Open a new line while preserving Markdown list continuation. The built-in Vim o breaks lists; this one keeps the bullet/number going.
gd Open the internal link under the cursor.
gx Open 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