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)
@@ -29,10 +33,10 @@ function! s:InvokeArduinoCli(deploy)
29
33
execute " w"
30
34
if a: deploy
31
35
echomsg " Compiling and deploying..." l: f_name
32
- let l: result = system (" ino build && ino upload" )
36
+ let l: result = system (g: vim_arduino_ino_cmd . " build && " . g: vim_arduino_ino_cmd . " upload" )
33
37
else
34
38
echomsg " Compiling..." l: f_name
35
- let l: result = system (" ino build" )
39
+ let l: result = system (g: vim_arduino_ino_cmd . " build" )
36
40
endif
37
41
38
42
echo l: result
You can’t perform that action at this time.
0 commit comments