Saturday, March 7, 2020

VIM Tutorial - Everything you need to know #1

So you have heard way too much about vim and have given it a go but it turns out that you have given it up after trying it for two days, the reason being you just cannot get used to this new way editing software! You probably already know how to shift between "escape" and "insert" mode of VIM.


COPY PASTE COMMANDS IN VIM

yy Yank (copy) the current line, including the newline character.
dd, Delete (cut) the current line, including the newline character.
p (paste) the text after the cursor


SCREEN SPLITTING.

Ctrl+WS (upper case) for horizontal splitting
Ctrl+Wv (lower case) for vertical splitting
Ctrl+WQ to close one
Ctrl+WCtrl+W to switch between windows
Ctrl+WJ (xor KHL) to switch to adjacent window (intuitively up, down, left, right)