X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/11d76e6d2619692acd6b543ccbb368dc42122e9f..a6ea1a1fa2e612852376b6deab07cb2388608fc8:/vim/ftplugin/roscpp.vim diff --git a/vim/ftplugin/roscpp.vim b/vim/ftplugin/roscpp.vim index e69de29..40267ba 100644 --- a/vim/ftplugin/roscpp.vim +++ b/vim/ftplugin/roscpp.vim @@ -0,0 +1,10 @@ +set path+=/opt/ros/hydro/include +augroup fs_roscpp + autocmd! + autocmd BufEnter *.cpp let b:fswitchdst = 'h' + autocmd BufEnter *.cpp let b:fswitchlocs = 'reg:|src$|include/**|' + autocmd BufEnter *.h let b:fswitchdst = 'cpp' + autocmd BufEnter *.h let b:fswitchlocs = 'reg:/include.*/src/' +augroup END + +set makeprg=catkin_make\ -C$ROS_WORKSPACE