Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with vim under Ubuntu 18.04 #33

Closed
Eric97 opened this issue Sep 17, 2020 · 4 comments
Closed

Not working with vim under Ubuntu 18.04 #33

Eric97 opened this issue Sep 17, 2020 · 4 comments

Comments

@Eric97
Copy link

Eric97 commented Sep 17, 2020

After installing the plugin with plug, all the arduino commands cannot be invoked either in Vim or NeoVim. The default arduino_cmd is installed at /usr/local/bin/arduino.

@stevearc
Copy link
Owner

When you say "cannot be invoked", what is actually happening? And please post the output of :ArduinoInfo if you can.

@Eric97
Copy link
Author

Eric97 commented Sep 17, 2020

:ArduinoInfo and the other :Ardu* commands are not recognized as valid editor commands.
:help arduino can display the help document though.

@stevearc
Copy link
Owner

Ah, the commands are defined in the ftplugin file https://github.com/stevearc/vim-arduino/blob/master/ftplugin/arduino.vim

It's possible that the files you're editing aren't properly recognized. The ftdetect rules live here: https://github.com/stevearc/vim-arduino/blob/master/ftdetect/arduino.vim

Try doing a :se ft? to check the detected filetype. If it's not set to arduino then that would explain it, and then we can figure out why the detection isn't working.

@Eric97
Copy link
Author

Eric97 commented Sep 18, 2020

Thanks. After opening the .ino file in vim, then the commands can work with the correct file type detected!

@Eric97 Eric97 closed this as completed Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants