From d0db61f539bacafb5cb5e08b9574bce0e06264cb Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 8 Jun 2019 23:48:25 +1200 Subject: Move and more thoroughly explain 'path' settings --- vim/vimrc | 9 ++++++--- 1 file 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 -- cgit v1.2.3