aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-06 15:17:30 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-06 15:17:30 +1200
commit2a2a5c3a5247f09ff8516ba6bb0866c9d4c70e5a (patch)
tree27ecffdab62ada4c1a113a1597056f68fd4c86aa
parentUse vimrc#EscapeSet() consistently (diff)
downloaddotfiles-2a2a5c3a5247f09ff8516ba6bb0866c9d4c70e5a.tar.gz
dotfiles-2a2a5c3a5247f09ff8516ba6bb0866c9d4c70e5a.zip
Add a couple of 'formatoptions'
-rw-r--r--vim/vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 4bca693c..d167ed02 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -72,6 +72,8 @@ set foldlevelstart=99
set foldmethod=indent
" Automatic formatting options
+set formatoptions+=l " Don't break a long line in insert mode
+set formatoptions+=1 " Avoid breaking lines after one-letter words
if vimrc#Version('7.3.541')
set formatoptions+=j " Delete comment leaders when joining lines
endif