diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-08 20:00:48 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-08 20:00:48 +1200 |
commit | b554c58a04ab371aa437203106b62f593a2c4ff9 (patch) | |
tree | 92996f24babe43266da0583656d25016d2ae7845 | |
parent | Begin adding longer comments for a literate vimrc (diff) | |
download | dotfiles-b554c58a04ab371aa437203106b62f593a2c4ff9.tar.gz dotfiles-b554c58a04ab371aa437203106b62f593a2c4ff9.zip |
Group clearing of C-related defaults
-rw-r--r-- | vim/vimrc | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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 |