diff --git a/autoload/doge/helpers.vim b/autoload/doge/helpers.vim index 74f1f2a6..6033a619 100644 --- a/autoload/doge/helpers.vim +++ b/autoload/doge/helpers.vim @@ -139,6 +139,12 @@ function! doge#helpers#deepextend(...) abort return l:new endfunction +"" @public +" Substitute input recursively. +function! doge#helpers#deepsubstitute(input, search, replacement, flags) abort + return eval(substitute(string(a:input), a:search, a:replacement, a:flags)) +endfunction + "" @public " Get the current filetype. Returns the original filetype if the current " filetype is an alias.