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
| local U = require "Comment.utils" | |
| local VISUAL_LINE = U.cmotion["V"] | |
| local min, max = math.min, math.max | |
| require("Comment").setup { | |
| opleader = { | |
| -- line = "gc", -- TODO: had to switch these to achieve the ft-lua behaviour wanted, but messes up everything else | |
| line = "gb", | |
| -- block = "gb", | |
| block = "gc", |
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) |
OlderNewer