VIM Tutorial - Everything you need to know #1
1 min read

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+W, S (upper case) for horizontal splittingCtrl+W, v (lower case) for vertical splittingCtrl+W, Q to close oneCtrl+W, Ctrl+W to switch between windowsCtrl+W, J (xor K, H, L) to switch to adjacent window (intuitively up, down, left, right)