|
Control
|
esc
|
|
Insert
|
i
|
|
Append
|
a
|
|
Visual
|
v
|
|
show line numbers
|
:set nu
|
|
hide line numbers
|
:set nonu
|
|
show status
|
ctrl + g
|
|
start of file
|
gg
|
|
end of file
|
G
|
|
jump to next word
|
w
|
|
jump to line 12
|
:12
|
|
start of line
|
^
|
|
end of line
|
$
|
|
delete
|
x
|
|
copy line
|
yy
|
|
delete line
|
dd
|
|
new line
|
o
|
|
paste
|
p
|
|
copy selection ( frrom visual mode)
|
y
|
|
indent right
|
>
|
|
indent left
|
<
|
|
undo
|
u
|
|
redo
|
ctrl + r
|
|
search
|
/pattern
|
|
forward occurence
|
n
|
|
backward occurence
|
N
|
|
find & replace
|
:%s/old/new/g
|
|
find & replace (need confirm)
|
:%s/old/new/gc
|
|
no write & quit
|
:q!
|
|
write & quit
|
:wq
|
|
save as file.txt
|
:w file.txt
|
|
open file2.txt (from file1.txt)
|
:e file1.txt
|
|
executing ls
|
:!ls -alt
|
|
pasting output ls
|
:r !ls -alt
|
|
count word
|
:!wc -c %
|
|
run python to current file
|
:!python %
|
|
open shell
|
:shell
|
|
set shell
|
:set shell=/bin/bash
|
|
set clipboard=unnamedplus
|
use system's clipboard
|
|
set expandtab
|
convert tab to space
|
|
set shiftwidth=4
|
shift = 4 spaces
|
|
set tabstop=4
|
tab = 4 spaces
|
|
set hlsearch
|
highlight search
|
|
set ignorecase
|
search ignore case
|
|
set smartcase
|
search sensitively
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.