博客迁移,迁移前原文: https://www.cnblogs.com/smstars/archive/2013/05/21/3090027.html

查看目前的设定值

:set shiftwidth

简单的重排

命令 描述
gqq 本行重排
:ce(nter) 本行文字居中
:ri(ght) 本行文字靠右
:le(ft) 本行文字靠左
shift + > 整行向右移动一个
shift + < 整行向左移动一个

重排段落

gqip

全文重排

gqQ

设置行间距

set linespace