]> git.rmz.io Git - dotfiles.git/commitdiff
vim: add cpp fswitch rules
authorSamir Benmendil <sb@cad-scan.co.uk>
Mon, 27 Jul 2015 14:08:38 +0000 (15:08 +0100)
committerSamir Benmendil <sb@cad-scan.co.uk>
Mon, 27 Jul 2015 14:08:38 +0000 (15:08 +0100)
these are specific to cadscan, find some more general rules or make them
only apply on '*/cadscan/*.h'

vim/ftplugin/cpp.vim

index 16ffc979280fb50fa716a483a9649cba03839fd5..7fd300c0afa956982faa5e10aa5de17ff342bdfb 100644 (file)
@@ -1 +1,6 @@
 setlocal foldmethod=syntax
+
+augroup fswitch
+    au BufEnter *.h let b:fswitchdst  = 'cpp,c'
+    au BufEnter *.h let b:fswitchlocs = 'reg:/include/source/'
+augroup END