Vim - mwicat/personal GitHub Wiki
Reformat current file
Set textwidth for current buffer:
:setl tw=80
Reformat selected lines
Select the lines of text you want to re-format:
v
Reformat it:
gq
Tabs
:set expandtab
:set tabstop=4
Vimdiff
]c : - next difference
[c : - previous difference
do - diff obtain
dp - diff put
zo - open folded text
zc - close folded text
zR - unfold all
zM - fold all
:diffupdate - re-scan the files for differences
Paste
:set paste
:set nopaste