-
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 |
M | Alt |
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 |
option | shortcut |
---|---|
synchronize panes | |
synchronize panes |
- General
- OS
- Networks
- Configuration
- Protocols
- Link layer
- Sockets
- Routing
- Tunneling
- Debugging
- LoRa
- Virtualization
- Infrastructure as a code
- Desktop environments
- Monitoring
- Benchmarking