Open a file in a new window: CTRL
+double-click
Compare two files:
- select two files
- press
CTRL
+D
Find in path: CTRL
+MAJ
+F
Search everywhere: SHIFT
SHIFT
dd
: delete current linedd
,p
: move current lineyy
,p
: duplicate current linei
: switch to insert mode (before cursor)Esc
: exit insert modeu
: undo~
: toggle case/pattern
: search for pattern?pattern
: search backward for patternn
: repeat search in same directionN
: repeat search in opposite direction:%s/old/new/g
: replace all old with new throughout file:%s/old/new/gc
: replace all old with new throughout file with confirmations:w
: save:q
: quit (fails if there are unsaved changes):q!
: quit and throw away unsaved changes:wq
: save and quit