aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-08 23:48:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-08 23:48:25 +1200
commitd0db61f539bacafb5cb5e08b9574bce0e06264cb (patch)
tree21a3c18c3cbfae5ecc36224f979212413a73a4ba
parentFlesh out a comment (diff)
downloaddotfiles-d0db61f539bacafb5cb5e08b9574bce0e06264cb.tar.gz
dotfiles-d0db61f539bacafb5cb5e08b9574bce0e06264cb.zip
Move and more thoroughly explain 'path' settings
-rw-r--r--vim/vimrc9
1 files changed, 6 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 8ccfa18f..ee685c6d 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -274,6 +274,12 @@ endif
"
set comments= commentstring= define= include=
+" Similarly to the above, the default value for 'path' that lists directories
+" in which project files and includes can be found adds /usr/include, which is
+" another C default, so we'll get rid of that, too.
+"
+set path-=/usr/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
" an option, Vim should give me a prompt to allow me to confirm that I know
@@ -511,9 +517,6 @@ set nomodeline
" Treat numbers with a leading zero as decimal, not octal
set nrformats-=octal
-" Don't search /usr/include by default
-set path-=/usr/include
-
" Disable command line display of file position if a system vimrc or Neovim
" has switched it on
set noruler