autocmd! BufNewFile,BufRead *.launch setfiletype roslaunch
autocmd! BufNewFile,BufRead PKGBUILD* setfiletype PKGBUILD
augroup END
+
+augroup ft_ros
+ autocmd! BufNewFile,BufRead */ros/*.cpp setfiletype cpp.roscpp
+ autocmd! BufNewFile,BufRead */ros/*.h setfiletype cpp.roscpp
+ autocmd! BufNewFile,BufRead package.xml setfiletype rospackage
+augroup END
+runtime! ftplugin/xml.vim
+
setlocal expandtab
setlocal tabstop=2
setlocal shiftwidth=2
--- /dev/null
+runtime! ftplugin/xml.vim
+
+setlocal expandtab
+setlocal tabstop=2
+setlocal shiftwidth=2
+setlocal softtabstop=2
return l:orig_indent
endfunction
-setlocal shiftwidth=2
-setlocal tabstop=2
-setlocal softtabstop=2
+setlocal shiftwidth=4
+setlocal tabstop=4
+setlocal softtabstop=4
setlocal expandtab
setlocal textwidth=80
setlocal cindent
-setlocal cinoptions=h1,l1,g1,t0,i4,+4,(0,w1,W4
+setlocal cinoptions=l1,g0,t0,i4,+4,(0,w1,W4
setlocal indentexpr=GoogleCppIndent()
--- /dev/null
+setlocal shiftwidth=2
+setlocal tabstop=2
+setlocal softtabstop=2
--- /dev/null
+runtime! indent/xml.vim
--- /dev/null
+if exists("b:current_syntax")
+ finish
+endif
+
+runtime! syntax/xml.vim
--- /dev/null
+priority -49
+extends cpp
+priority -48
--- /dev/null
+snippet maintainer "maintainer" b
+<maintainer email="${1:samir.benmendil@gmail.com}">${2:Samir Benmendil}</maintainer>
+endsnippet
+
+snippet author "author me" b
+<author email="${1:samir.benmendil@gmail.com}">${2:Samir Benmendil}</author>
+endsnippet
+
+snippet bd "build_depend" b
+<build_depend>$0</build_depend>
+endsnippet
+
+snippet rd "run_depend" b
+<run_depend>$0</run_depend>
+endsnippet
+
+snippet td "test_depend" b
+<test_depend>$0</test_depend>
+endsnippet
+
+snippet btd "buildtool_depend" b
+<buildtool_depend>$0</buildtool_depend>
+endsnippet