File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ add this to your `.vimrc`:
46
46
let g:vim_arduino_auto_open_serial = 1
47
47
```
48
48
49
+ To change the command used to build and deploy :
50
+
51
+ ```
52
+ let g:vim_arduino_ino_cmd = 'ano'
53
+ ```
54
+
49
55
50
56
[ ino-config ] : http://inotool.org/quickstart#configuration-files
51
57
[ ino-source ] : https://pypi.python.org/pypi/ino/#downloads
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ if !exists('g:vim_arduino_auto_open_serial')
10
10
let g: vim_arduino_auto_open_serial = 0
11
11
endif
12
12
13
+ if ! exists (' g:vim_arduino_ino_cmd' )
14
+ let g: vim_arduino_ino_cmd = ' ino'
15
+ endif
16
+
13
17
let s: helper_dir = expand (" <sfile>:h" )
14
18
15
19
function ! s: PrintStatus (result)
@@ -30,10 +34,10 @@ function! s:InvokeArduinoCli(deploy)
30
34
execute " w"
31
35
if a: deploy
32
36
echomsg " Compiling and deploying..." l: f_name
33
- let l: result = system (" ino build && ino upload" )
37
+ let l: result = system (g: vim_arduino_ino_cmd . " build && " . g: vim_arduino_ino_cmd . " upload" )
34
38
else
35
39
echomsg " Compiling..." l: f_name
36
- let l: result = system (" ino build" )
40
+ let l: result = system (g: vim_arduino_ino_cmd . " build" )
37
41
endif
38
42
39
43
echo l: result
You can’t perform that action at this time.
0 commit comments