From: Colin Patrick Mccabe Date: Fri, 5 Dec 2014 21:18:28 +0000 (-0800) Subject: vim: add custom pom.xml indentation, shift width, etc. X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33c01cc0c0bc81720963ba2caff234055fbbb74c;p=cmccabe-etc vim: add custom pom.xml indentation, shift width, etc. Signed-off-by: Colin McCabe --- diff --git a/.vim/ftdetect/pom.vim b/.vim/ftdetect/pom.vim new file mode 100644 index 0000000..fc929a8 --- /dev/null +++ b/.vim/ftdetect/pom.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile pom.xml set filetype=pom diff --git a/.vim/indent/pom.vim b/.vim/indent/pom.vim new file mode 100644 index 0000000..29b5f0e --- /dev/null +++ b/.vim/indent/pom.vim @@ -0,0 +1,13 @@ +if exists("b:did_indent") + finish +endif + +let b:did_indent = 1 + +" 2-column indentation with soft tabs +set sw=2 +set ts=2 +set et + +" No column limit +set tw=9999 diff --git a/.vim/syntax/pom.vim b/.vim/syntax/pom.vim new file mode 100644 index 0000000..91804d8 --- /dev/null +++ b/.vim/syntax/pom.vim @@ -0,0 +1,7 @@ +if exists("b:current_syntax") + finish +endif + +" Use XML syntax highlighting for pom.xml files +source $VIMRUNTIME/syntax/xml.vim +let b:did_indent = 1