Improve the list of indent keys for cmake filetype

This commit is contained in:
Kenneth Benzie 2019-07-24 13:52:55 +01:00
parent 1e47926465
commit 5f93199735

View File

@ -6,6 +6,9 @@ setlocal foldmethod=syntax
" Set comment string " Set comment string
setlocal commentstring=#%s setlocal commentstring=#%s
" setlocal indentkeys=0{,0},:,0#,!^F,o,O,e,=ENDIF(,ENDFOREACH(,ENDMACRO(,ELSE(,ELSEIF(,ENDWHILE(
setlocal indentkeys=:,!^F,o,O,e,=endif(,=ENDIF(,endforeach(,ENDFOREACH(,endmacro(,ENDMACRO(,else(,ELSE(,elseif(,ELSEIF(,endwhile(,ENDWHILE(
" Custon surround for creating a CMake variable from a text object. " Custon surround for creating a CMake variable from a text object.
" "ys{motion}v" makes a variable out of "text-obj" -> "${text-obj}" " "ys{motion}v" makes a variable out of "text-obj" -> "${text-obj}"
let b:surround_{char2nr("v")} = "${\r}" let b:surround_{char2nr("v")} = "${\r}"