aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-26 18:30:57 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-26 18:30:57 +1300
commit63596ba1b4207115116bff9257d52c16964f612a (patch)
tree917e0669fbcc99f492ca56ca5257b5c6cb9137bf
parentRemove repeat.vim and surround.vim (diff)
downloaddotfiles-63596ba1b4207115116bff9257d52c16964f612a.tar.gz
dotfiles-63596ba1b4207115116bff9257d52c16964f612a.zip
Switch to two-space sentences
You win, Steve Losh.
-rw-r--r--vim/vimrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 6c16f033..122a108d 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -84,6 +84,10 @@ endif
" Give me a prompt instead of just rejecting risky :write, :saveas
set confirm
+" Require two spaces for sentence objects
+" Yes, I have become a filthy two-spacer
+set cpoptions+=J
+
" Try to keep swapfiles in one system-appropriate dir
set directory^=$MYVIMRUNTIME/cache/swap//
@@ -135,9 +139,6 @@ set include=
" Show search matches as I type my pattern
set incsearch
-" Don't join lines with two spaces at the end of sentences
-set nojoinspaces
-
" Don't show a statusline if there's only one window
" This is the Vim default, but NeoVim changed it
if &laststatus != 1