Skip to main content

VIM's Mantra of Minimalist Typing - Part One

Vim provides a variety of auto-completion features to do all your typing. To invoke the right one for the task is key to achieve "vim's mantra of minimalist typing". All the below commands work on vanilla vim; no additional plugins are needed.

The Basic Ones:

Completing or Pasting from a register
Ctrl-r <register>

Inserting last inserted text
Ctrl-a
inserting last inserted text


Copying characters above the cursor.
Ctrl-y
copying characters above the cursor







Comments

Popular posts from this blog

Zooming Vim Window Splits like a Pro

Most of the time, having multiple splits in a window is necessary. But at times its a distraction. There is also a need not to close all other splits in the window; so as, not to lose the context. Below is a neat trick to zoom-in and zoom-out the splits. noremap Zz <c-w>_ \| <c-w>\| noremap Zo <c-w>= The commands won't close any buffers like Ctrl-w  + o would. Explanation of the commands: Ctrl-w  + |         Set current window width to N (default: widest possible). Ctrl-w  +  _        Set current window height to N (default: highest possible). Ctrl-w  +  =        Make all windows (almost) equally high and wide. Resource: :help window-resize