aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/cpp.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin/cpp.vim')
-rw-r--r--vim/after/ftplugin/cpp.vim9
1 files changed, 7 insertions, 2 deletions
diff --git a/vim/after/ftplugin/cpp.vim b/vim/after/ftplugin/cpp.vim
index a826bf43..38c94330 100644
--- a/vim/after/ftplugin/cpp.vim
+++ b/vim/after/ftplugin/cpp.vim
@@ -5,5 +5,10 @@ endif
" Set comment formats
setlocal include=^\\s*#\\s*include
-setlocal path+=/usr/include
-let b:undo_ftplugin .= '|setlocal include< path<'
+let b:undo_ftplugin .= '|setlocal include<'
+
+" Include headers on UNIX
+if has('unix')
+ setlocal path+=/usr/include
+ let b:undo_ftplugin .= '|setlocal path<'
+endif