我在编辑大多数文本文件时启用软换行:
:set wrap
如果你决定这样做,那么你需要了解普通模式下的 gj 和 gk,它们可以按屏幕行移动而不是物理行。我经常使用它们,所以我将向上和向下箭头键映射到它们,而不是 k 和 j。:set formatoptions+=a
当你进行这些包装和解包操作时,最好让 Vim 不要破坏有序列表:
:set formatoptions+=n
事实上,我建议检查所有的formatoptions
并根据您的特定偏好进行调整:
:help fo-table
更多信息:
:help gj
:help gk
:help gqap
:help auto-format
:help formatoptions
拼写检查:
:setlocal spell spelllang=en_us
" ]s moves to the next mispelled word
" [s moves to the previous mispelled word
虽然维护不太好,但 Vim-Outliner 项目将 Vim 变成了一个杀手级的纯文本写作大纲工具。您可以在此处下载 v0.34(我认为有更新的版本,但我不确定在哪里获取):
我非常喜欢这篇关于使用latex写作的博客文章。你可以使用vim-latex :) 它更多地关注于如何写作得更好,而不仅仅是编辑英文文本。
http://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/
使用插入缩写:
iabbr teh the
iabbr i I
iabbr definately definitely
编辑,另一个提示:
set wrap nolist linebreak