nickdenardis / learning-vim

My adventure learning VIM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VIM Basics

Movement

h = Left
j = Down
k = Left
l = Up
{n}j = Down {n} lines
$ = Move to end of line
Ctrl + N = Open/close the sidebar

Editing

x = Delete letter under cursor
i = Edit mode
a = Append mode
A = Move to end of line and enter append mode
dd = Delete whole line
<number>dd = Delete lines below the cursor
ESC = Back to command mode
u = Undo last change

Saving

:q! = Quit without saving
:w = Write file
,w = Write file with custom leader from vimrc
:wq = Write and quit

Useful

:! <command> = Run a terminal command

About

My adventure learning VIM


Languages

Language:Vim Script 100.0%