aboutsummaryrefslogtreecommitdiff
path: root/after
diff options
context:
space:
mode:
authorMax Christian Pohle2023-10-21 02:32:31 +0200
committerMax Christian Pohle2023-10-21 02:32:31 +0200
commit66f713050c69bf88706d8d17ed2e32c73b12ee57 (patch)
tree35976b23f2e9afd7b0c6aca389117b12ef6dfb5d /after
parent3efb1546b256c620da3ea70c8c717e55cce0b3b2 (diff)
downloadvim-66f713050c69bf88706d8d17ed2e32c73b12ee57.tar.bz2
vim-66f713050c69bf88706d8d17ed2e32c73b12ee57.zip
Improved code folding, because tree-sitter broke it
Diffstat (limited to 'after')
-rw-r--r--after/syntax/c.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/after/syntax/c.vim b/after/syntax/c.vim
index cbdd42b..4c3b3f0 100644
--- a/after/syntax/c.vim
+++ b/after/syntax/c.vim
@@ -34,6 +34,10 @@ set formatoptions+=1 " Don't break a line after a one-letter word.
34" open a corresponding header file 34" open a corresponding header file
35nnorem <leader>gh :execute 'edit '.findfile(substitute(expand('%:t'),'\.[ch]$','.h',''))<CR> 35nnorem <leader>gh :execute 'edit '.findfile(substitute(expand('%:t'),'\.[ch]$','.h',''))<CR>
36 36
37if filereadable("/usr/bin/vendor_perl/ack")
38 autocmd FileType c,cpp set grepprg=/usr/bin/vendor_perl/ack\ --type=cc\ --nogroup\ --column\ $*
39 autocmd FileType c,cpp set grepformat=%f:%l:%c:%m
40endif
37 41
38" multiple single line comments in a row " broken! 42" multiple single line comments in a row " broken!
39" syn region myCComment start="/\*" end="\*/" fold keepend transparent 43" syn region myCComment start="/\*" end="\*/" fold keepend transparent
..