vipzhicheng / logseq-plugin-vim-shortcuts

Add part of VIM key bindings experience to Logseq
MIT License
338 stars 17 forks source link

:coffee: Get me a coffee if you like this plugin!

logseq-plugin-vim-shortcuts

Github All Releases

This plugin provide some shortcuts which give Logseq a VIM-like feeling.

screencast

Supported shortcuts

Modes

Normal mode

A block is focused/highlighted.

Insert mode

You can edit a block.

Visual block mode

You can select more blocks up and down and move the selected blocks using j and k.

Command mode

In VIM this mode can be triggered by :, but here, the shortcut is mod+shift+;, also can be memorized as mod+:. After trigger, you can find an input area at the bottom, you can input some commands here like in VIM. For now it's about 10+ commands, but I believe that would be more.

NOTE: on Windows, the trigger is ctrl+alt+;

The bottom input features

Supported commands

Case Change Styles

Mark feature notes

Slash commands this plugin added

Because some VIM shortcuts or commands may also need to be as a slash command, so this plugin provides some.

Named Background Colors

The named colors you can use in :bg command are from here

Search in page

Like in VIM, if you press / you can trigger in-page search, and it support smartcase which means if you search in lower case it will match case insensitive and if you search a keyword including upper case char then it will match case sensitive.

Other notes

❤️ Buy me a coffee

If this plugin solve your situation a little bit and you will, you can choose to buy me a coffee via this and this, that means a lot to me.

Licence

MIT