Add syntax folding for cmake

This commit is contained in:
2017-05-03 22:56:30 +01:00
parent 7df1cb7b26
commit df48f1f607
2 changed files with 8 additions and 14 deletions

View File

@@ -1,17 +1,5 @@
" TODO Create fold markers based on cmake syntax, eg.
"
" if() <- open
" endif() <- close
"
" foreach() <- open
" endforeach() <- close
"
" and so on for all other begin end style command pairs.
"
" Then change the setting.
"
" setlocal foldmethod=syntax
setlocal foldmethod=indent
" Enable syntax folding, see .vim/after/syntax/cmake.vim
setlocal foldmethod=syntax
" Set comment string
setlocal commentstring=#%s