Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 285 Bytes

cheatsheet-vim.md

File metadata and controls

26 lines (19 loc) · 285 Bytes

vim

Remove duplicated rows with sort

:sort u

Numeric sort, the 1, 2, 3, 4 ... 9, 10 way.

:sort n

reindent the entire file

gg=G

To display the name of the current file, type Ctrl-G (or press 1 then Ctrl-G for the full path).

1
Ctrl-G