Interact with this post using Mastodon or
Tweaked (Neo)Vim keybindings
After my list of the default (Neo)vim global and some personalized 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) |
All posts in the Keybindings in (Neo)vim series:
- Few customized (Neo)vim keybindings
- (Neo)Vim keybindings
- Tweaked (Neo)Vim keybindings