Skip to content

Commit 698bfcc

Browse files
committed
fix: wrap autocmd in augroup
1 parent 6f07bc6 commit 698bfcc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ftplugin/arduino.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ setl cindent
1414
call arduino#RebuildMakePrg()
1515

1616
if g:arduino_auto_baud
17-
au BufReadPost,BufWritePost *.ino call arduino#SetAutoBaud()
17+
aug ArduinoBaud
18+
au!
19+
au BufReadPost,BufWritePost *.ino call arduino#SetAutoBaud()
20+
aug END
1821
endif
1922

2023
command! -buffer -bar -nargs=? ArduinoAttach call arduino#Attach(<f-args>)

0 commit comments

Comments
 (0)