From: James Bunton Date: Wed, 29 Feb 2012 23:50:25 +0000 (+1100) Subject: CMakeLists.txt syntax X-Git-Url: https://code.delx.au/dotfiles/commitdiff_plain/afff86e807111fc5bcb28d8fa51da49829cfc5d3 CMakeLists.txt syntax --- diff --git a/.vim/filetypes.vim b/.vim/filetypes.vim index d55c656..913ee92 100644 --- a/.vim/filetypes.vim +++ b/.vim/filetypes.vim @@ -9,6 +9,7 @@ filetype plugin indent on autocmd BufNewFile,BufRead *.txt setlocal ft=text autocmd BufNewFile,BufRead mutt* setlocal ft=mail autocmd BufNewFile,BufRead *.tex setlocal ft=tex +autocmd BufNewFile,BufRead CMakeLists.txt setlocal ft=cmake " Set options based on filetypes, overriding the filetype plugin/indent options autocmd FileType text call WrapOn() @@ -16,6 +17,7 @@ autocmd FileType bib setlocal textwidth=78 nocindent smartindent autocmd FileType mail setlocal textwidth=72 autocmd FileType tex call WrapOn() autocmd FileType objc setlocal nocindent smartindent +autocmd FileType cmake setlocal nowrap " Don't automatically continue comments on new lines """autocmd BufNewFile,BufRead * setlocal formatoptions-=r