Tuesday, December 22, 2020

Re: "deoplete" has a problem with my ESP32... :)

Den tis 22 dec. 2020 11:44 <tuxic@posteo.de> skrev:
Hi,

currently I am codeing a firmware for an ESP32 microcontroller.
I am using the ESP-IDF framework. This framework needs some
environment variables to be set. If this is done, deoplete
get confused and behaves oddly (seems to be based on the
python version used by ESP-IDF...)

Is there a way to detect
* the existence and the contence of an environment variable inside vim
  script? How can I do this?

Accessing/manipulating environment variables is easy:

echo exists('$FOO')
let $FOO = 'bar'
echo exists('$FOO')
echo empty($FOO)
echo $FOO

Note that the $ is always included. It is Vim's way of distinguishing env variables.
I do this all the time when running scripts which take env var config from inside Vim.


* the python version which is currently in use? How can I do this?

And
* is it possible to disable deocomplete temporarily without
  uninstalling it ? How can I do this?


Cheers!
mcc


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20201222104351.pey3mjxb2fjb7muv%40solfire.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADAJKhBZHwPGMW8yQkC7hGaG1MRr1xvfrZ%2BRc%3DyuQFR-zi9EpQ%40mail.gmail.com.

No comments: