]> code.delx.au - dotfiles/commitdiff
CMakeLists.txt syntax
authorJames Bunton <jamesbunton@delx.net.au>
Wed, 29 Feb 2012 23:50:25 +0000 (10:50 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Wed, 29 Feb 2012 23:50:25 +0000 (10:50 +1100)
.vim/filetypes.vim

index d55c656afce7dad28516ed6715ae28f1837059d1..913ee925f6e116334d731caa500daf53142b694b 100644 (file)
@@ -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