Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.2 KB

vim.md

File metadata and controls

42 lines (28 loc) · 1.2 KB

Shortcuts

Command
MultilineVisual Mode: CRTL + V

Navigation in windows

Command
Horizontal splitting Ctrl+W, S
Vertical splitting Ctrl+W, v
Close one Ctrl+W, Q
Switch between windows Ctrl+W, Ctrl+W
Switch to adjacent window Ctrl+W, J (or K, H, L)

Multiline cursor operations

1. Multiline add:
  • Press CRTL + V
  • Select lines (up and down keys)
  • Press SHIFT + I
  • Write sth
  • Press ESC
2. Multiline remove:
  • Press CRTL + V
  • Select lines (up, down, left and right keys)
  • Press DELETE

Hack & Tricks

1. Save current changes with sudo
:w !sudo tee %