" 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 " Set comment string setlocal commentstring=#%s