Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 895 Bytes

vim.md

File metadata and controls

33 lines (23 loc) · 895 Bytes

Vim

Books

Commands

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

Tips

Vim Tips Wiki

# Trim trailing whitespace
:%s/\s\+$

Key combinations

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)