-
Notifications
You must be signed in to change notification settings - Fork 3
Editing
stachu edited this page Dec 6, 2017
·
2 revisions
To set per-user default editor use EDITOR
environmental variable.
Legend
symbol | meaning |
---|---|
C |
Control key |
M |
Alt key |
In order to set options permanently, append them to ~/.vimrc
operation | shortcut |
---|---|
cut/copy/paste | select with v (whole line with V , rectangular blocks with ctrl + v ), use cursors, copy with y , cut with d , paste before cursor with P , after with p
|
undo | u |
reformat code |
= , e.g. gg=G
|
option | shortcut |
---|---|
highlight | :syntax on/off |
line numbers |
:set number / set nonumber
|
option | shortcut |
---|---|
compatibility mode (compatibility with very old plain vi), following command disables compatibility | :set nocompatible |
Assuming C-b
is the prefix
option | shortcut |
---|---|
bring tmux command line |
C-b :
|
synchronize panes |
C-b :setw synchronize-panes
|
align panes | vertical: C-b M-2 , horizontal: C-b M-1
|
- General
- OS
- Networks
- Configuration
- Protocols
- Link layer
- Sockets
- Routing
- Tunneling
- Debugging
- LoRa
- Virtualization
- Infrastructure as a code
- Desktop environments
- Monitoring
- Benchmarking