aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-08 20:00:48 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-08 20:00:48 +1200
commitb554c58a04ab371aa437203106b62f593a2c4ff9 (patch)
tree92996f24babe43266da0583656d25016d2ae7845
parentBegin adding longer comments for a literate vimrc (diff)
downloaddotfiles-b554c58a04ab371aa437203106b62f593a2c4ff9.tar.gz
dotfiles-b554c58a04ab371aa437203106b62f593a2c4ff9.zip
Group clearing of C-related defaults
-rw-r--r--vim/vimrc15
1 files changed, 9 insertions, 6 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 71cc8a18..590d0176 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -161,13 +161,17 @@ endif
" * This is an ANSI C comment.
" */
"
+" Similarly, the 'define' and 'include' options default to C preprocessor
+" directives:
+"
+" #define FOO "bar"
+" #include "baz.h"
+"
" Times change, however, and I don't get to work with C nearly as much as I'd
-" like. The defaults no longer make sense, and so we blank the global values
-" for these options, compelling filetype plugins to set them as they need
-" instead.
+" like; the defaults for these options no longer make sense, and so we blank
+" them, compelling filetype plugins to set them as they need instead.
"
-set comments=
-set commentstring=
+set comments= commentstring= define= include=
" Rather than rejecting operations like :write or :saveas when 'readonly' is
" set, and other situations in which data might be lost or I'm acting against
@@ -257,7 +261,6 @@ set hlsearch
nohlsearch
" Don't assume I'm editing C; let the filetype set this
-set include=
" Show search matches as I type my pattern
set incsearch