From: Samir Benmendil Date: Thu, 27 Aug 2015 00:16:38 +0000 (+0100) Subject: vim: auto-wrap comments, don't insert comment leader X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/5bed4e24e6d0cc3793d214036623282965c86399?ds=inline vim: auto-wrap comments, don't insert comment leader --- diff --git a/vim/vimrc b/vim/vimrc index 86d5bfb..8160348 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -172,6 +172,8 @@ set formatoptions+=r " Insert comment leader after hitting set formatoptions+=n " Recognize numbered lists set formatoptions+=q " Allow formatting of comments with "gq". set formatoptions+=l " do not wrap lines that have been longer when starting insert mode already +set formatoptions+=t " Auto-wrap text using textwidth +set formatoptions-=o " Do not insert comment leader after hitting o or O in normal mode set nrformats=hex " number formats recognized for CTRL-A and CTRL-X commands