Last active
January 26, 2022 09:11
-
-
Save sunjon/bc8ac1d91f2d1b6204cc2d5c08c3a863 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! RosConvert(str) | |
return substitute(a:str, '^$(\(find.\{-}\))', '$(rospack \1)', '') | |
endfunction | |
let test_gf = "$(find px4_fast_planner)/foo/bar.launch" | |
echo RosConvert(test_gf) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment