Command | Description |
---|---|
:bd |
Close a buffer without quitting vim, which is handy when editing multiple files |
:noh |
Clear the current search highlight |
:retab |
Replace all sequences of white-space containing a with new strings of white-space using the new tabstop value given |
# Trim trailing whitespace
:%s/\s\+$
Scrolling window without moving the cursor
Keys | Descriptions |
---|---|
zz | move current line to the middle of the screen |
zt | move current line to the top of the screen |
zb | move current line to the bottom of the screen |
<C-V><Tab> |
Explicitly insert a tab character (while in insert mode) |