dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 668ee3ff6875147efc87524239c7e1fe67f118d6
parent b7f587e8af0c393aad7113dacc1c0fd25e8b872e
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Thu, 10 Sep 2020 14:51:57 +0200

vim: include/define + syntax folding for C

Former-commit-id: aa63e7e21ffc285497e0297da977d419cd93023d
Diffstat:
Mvim/after/ftplugin/c.vim | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim @@ -3,3 +3,10 @@ if v:version >= 800 endif let b:undo_ftplugin = (exists('b:undo_ftplugin') ? b:undo_ftplugin.'|' : '') let b:undo_ftplugin .= 'nmapc <buffer>' +setlocal path+=/usr/include,/usr/local/include,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include,/usr/lib,/usr/local/Cellar/gcc*/**/include/** +let &l:include='^\s*#\s*include\s*["<]\zs.*\ze[>"]' +setlocal includeexpr= +let &l:define='\v^\s*(#\s*define)|((const )?(int|char|void|s?size_t) \*? ?)|(struct \ze\k+ \{)|(struct \k+ \ze\k+;)' +let &l:iskeyword='a-z,A-Z,48-57,_,.' + +set foldmethod=syntax