h j k lw b efor ←↑↓→
move around words
^ $move to begin/end of line
tA fA;jump to character A
repeat the last "t" or "f" jump
%move to matching parenthesis
gg G123Gjump to beginning/end of file
jump to line 123
CTRL-U
CTRL-Dscroll up/down half a page
CTRL-I
CTRL-Oprevious/next in the jump list
o Onew line and insert
i aIinsertion mode
insert at beginning of line
Ainsert at end of line
dypdelete (cut)
copy
paste
uundo
CTRL-Rrecover
vVCTRL-Vselect
select whole lines
select by block
combine it with I and A :)
cS ccrchange (delete + insert)
change line
replace one character
> <=add/remove one indent
auto indent
Verb + Modifier + Noun
action + modifier + object
or
action + movement
=
`daw``ci(``dtP`delete a word
change inside parenthesis
delete until letter P
d...delete
ppaste
cchange
ycopy
"yank"
=indent
iinside
aaround
wword
pparagraph
ssentence
t<tag>...</tag>
''...'
{{...}
((...)
Use
./hellon NSearches 'hello' in the file
Jumps to next/previous occurence
(can be combined with an action!
e.g. "delete until first occurence of 'hello'")
*Searches the word under the cursor
/ highlights space characters
/\thighlights tab characters
:set hlsearch↓
"slash space"
:%s/hello/hi/gReplace 'hello' by 'hi' in the whole file
%s/hello/hi/gRange '%'
= whole file
Option 'g'
= replace all occurrences of each line
*then
%s//new word/gjump to next number of the line and increment/decrement it
CTRL-A CTRL-X<C-X><C-F>ctrl-x then ctrl-f successively
autocomplete filenames
Copy/paste from different places
"Prefix with and a character (= register name)
"ay"bpCopy in register 'a'
Paste from register 'b
"+"%System clipboard :)
Current filename
(doesn't work through SSH!)