This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.ini
66 lines (52 loc) · 1.58 KB
/
tasks.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# vim: set fenc=utf-8 ft=dosini:
# define a new task named "file-build"
[file-build]
# shell command, use quotation for filenames containing spaces
# check ":AsyncTaskMacro" to see available macros
command:c=gcc "$(VIM_FILEPATH)" -o "$(VIM_FILEDIR)/$(VIM_FILENOEXT)"
command:cpp=g++ "$(VIM_FILEPATH)" -o "$(VIM_FILEDIR)/$(VIM_FILENOEXT)"
# working directory, can change to $(VIM_ROOT) for project root
cwd=$(VIM_FILEDIR)
# output mode, can be one of quickfix and terminal
# - quickfix: output to quickfix window
# - terminal: run the command in the internal terminal
output=quickfix
# this is for output=quickfix only
# if it is omitted, vim's current errorformat will be used.
errorformat=%f:%l:%m
# save file before execute
save=1
[file-run]
command="$(VIM_FILEDIR)/$(VIM_FILENOEXT)"
command:python=:CocCommand python.execInTerminal
command:c=$(VIM_FILEDIR)/$(VIM_FILENOEXT)
command:cpp=$(VIM_FILEDIR)/$(VIM_FILENOEXT)
cwd=$(VIM_FILEDIR)
output=terminal
save=1
[cmake-build]
command=cmake -H. -Bbuild -DCMAKE_EXPORT_COMPILE_COMMANDS=ON && cmake --build build
cwd=$(VIM_ROOT)
output=terminal
save=1
[cmake-run]
command=build/${VIM_PRONAME}
cwd=$(VIM_ROOT)
output=terminal
[cmake-build-and-run]
command=cmake -H. -Bbuild -DCMAKE_EXPORT_COMPILE_COMMANDS=ON && cmake --build build && build/${VIM_PRONAME}
cwd=$(VIM_ROOT)
output=terminal
save=1
[cmake-clean]
command=cmake -E remove_directory build
cwd=$(VIM_ROOT)
output=terminal
[cargo-fb]
command=cargo flash --bin $(VIM_FILENOEXT)
cwd=$(VIM_ROOT)
output=terminal
[cargo-fe]
command=cargo flash --example $(VIM_FILENOEXT)
cwd=$(VIM_ROOT)
output=terminal