Skip to content

Task Examples

Linwei edited this page Feb 17, 2020 · 25 revisions

CMake Example

[project-init]
command=mkdir build && cd build && cmake .. -G "MinGW Makefiles"
cwd=<root>
errorformat=

[project-build]
command=cmake --build build
cwd=<root>
errorformat=%f:%m:%l

[project-run]
command=build\$(VIM_PRONAME)
cwd=<root>
output=terminal

Grep Example

Project wide grep, will ask you input a keyword:

[grep]
command=rg -n --no-heading --color never "$(?keyword)" "<root>" -tcpp -tc -tpy -tvim -tgo -tasm
cwd=$(VIM_ROOT)
errorformat=%f:%l:%m
Clone this wiki locally