X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/eea5ddf237360145433d8604c13e1633a3315d42..148295024c93e47f90ac850bf068e592b16b1c7c:/vim/filetype.vim diff --git a/vim/filetype.vim b/vim/filetype.vim index ade77b0..c89635a 100644 --- a/vim/filetype.vim +++ b/vim/filetype.vim @@ -2,6 +2,13 @@ if exists("did_load_filetypes") finish endif augroup filetypedetect - autocmd! BufNewFile,BufRead *.launch setfiletype roslaunch - autocmd! BufNewFile,BufRead PKGBUILD* setfiletype PKGBUILD + autocmd! BufNewFile,BufRead PKGBUILD setfiletype PKGBUILD +augroup END + +augroup ft_ros + autocmd! BufNewFile,BufRead */ros/*.py setfiletype python.rospy + autocmd! BufNewFile,BufRead */ros/*.cpp setfiletype cpp.roscpp + autocmd! BufNewFile,BufRead */ros/*.h setfiletype cpp.roscpp + autocmd! BufNewFile,BufRead *.launch setfiletype roslaunch + autocmd! BufNewFile,BufRead package.xml setfiletype rospackage augroup END