X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/d48db5d7af07207c1b0d829eb7c538432c2fac3c..86a69b92480406f52b308e26608dcdf8eb4aa861:/vim/indent/roslaunch.vim diff --git a/vim/indent/roslaunch.vim b/vim/indent/roslaunch.vim index 6a4393b..de1ae9b 100644 --- a/vim/indent/roslaunch.vim +++ b/vim/indent/roslaunch.vim @@ -1,4 +1,3 @@ - " Use XML indentation rules if exists("b:did_indent") @@ -7,25 +6,3 @@ endif " load the XML indent rules runtime! indent/xml.vim -runtime! indent/yaml.vim - -" override the vim indent expression (we'll call it ourselves) -setlocal indentexpr=GetRoslaunchIndent(v:lnum) - -" Only define the function once. -if exists("*GetRoslaunchIndent") - finish -endif - -" wiki-indent will return vim indent inside a
block, -" and return -1 if not inside a block to trigger auto-indent -function GetRoslaunchIndent(lnum) - return -1 - if searchpair('','',' ','bWnm') > 0 - return GetYAMLIndent(lnum) - else - return -1 - endif -endfunc - -