diff options
author | Max Christian Pohle | 2023-10-21 02:32:31 +0200 |
---|---|---|
committer | Max Christian Pohle | 2023-10-21 02:32:31 +0200 |
commit | 66f713050c69bf88706d8d17ed2e32c73b12ee57 (patch) | |
tree | 35976b23f2e9afd7b0c6aca389117b12ef6dfb5d /after/syntax | |
parent | 3efb1546b256c620da3ea70c8c717e55cce0b3b2 (diff) | |
download | vim-66f713050c69bf88706d8d17ed2e32c73b12ee57.tar.bz2 vim-66f713050c69bf88706d8d17ed2e32c73b12ee57.zip |
Improved code folding, because tree-sitter broke it
Diffstat (limited to 'after/syntax')
-rw-r--r-- | after/syntax/c.vim | 4 |
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 |
35 | nnorem <leader>gh :execute 'edit '.findfile(substitute(expand('%:t'),'\.[ch]$','.h',''))<CR> | 35 | nnorem <leader>gh :execute 'edit '.findfile(substitute(expand('%:t'),'\.[ch]$','.h',''))<CR> |
36 | 36 | ||
37 | if 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 | ||
40 | endif | ||
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 |