Interact with this post using Mastodon or
Tweaked (neo)vim keybindings
Published on
After my list of the default (neo)vim keybindings
I use the most, here are few tweaks I made to some default keybindings to streamline my workflow.
| Category | Command/Keybinding | Description |
|---|---|---|
| Motion | Gzz | Remapping <CR> to this command allows to jump to the line number you type in normal mode |
gjzz | Place the cursor line in the middle of the screen when moving down | |
gkzz | Place the cursor line in the middle of the screen when moving up | |
<C-d>zz | Place the cursor line in the middle of the screen when scrolling down | |
<C-u>zz | Place the cursor line in the middle of the screen when scrolling up | |
| Deletion | [["_dd]] | Delete entire line without saving the text in the default buffer |
[["_d0]] | Delete until the bginning of the line without saving the text in the default buffer | |
[["_D]] | Delete through the end of the line without saving the text in the default buffer | |
| Selection | 0v$ | Select the entire line |
v$ | Select text through the end of the line | |
| Spelling | :set spell! | Toggle spell checker |
:set spell spelllang=XX | Toggle spell checker language (where XX is the language abbreviation) | |
| Tmux | :!tmux display-popup | Open a tmux popup window (see man tmux to use options like width and height) |
More food for thoughts? Check other posts about: #(Neo)vim
Thanks for your read. Hope it's been useful to you.
✄ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈