www-gem words

Tweaked (neo)vim keybindings

Published on

vim 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.

CategoryCommand/KeybindingDescription
MotionGzzRemapping <CR> to this command allows to jump to the line number you type in normal mode
gjzzPlace the cursor line in the middle of the screen when moving down
gkzzPlace the cursor line in the middle of the screen when moving up
<C-d>zzPlace the cursor line in the middle of the screen when scrolling down
<C-u>zzPlace 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
Selection0v$Select the entire line
v$Select text through the end of the line
Spelling:set spell!Toggle spell checker
:set spell spelllang=XXToggle spell checker language (where XX is the language abbreviation)
Tmux:!tmux display-popupOpen 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.


Interact with this post using Mastodon or

Comment on wwwgem's post

Copy and paste this URL into the search field of your favourite Fediverse app or the web interface of your Mastodon server.

✄ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈ ┈