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.

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

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?
* 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.

Monday, December 21, 2020

Re: vim terminal - cannot generate C-Space (C-@)

Hi,

Just more info, I am using version 8.2.2184, on Ubuntu 18.04

thx,
-m
On Monday, December 21, 2020 at 11:46:46 AM UTC-5 mckel...@gmail.com wrote:
Hi,

Thank you for awesome vim!

In a vim terminal I cannot seem to get a C-@ key.
This works fine in vim itself and at a normal shell prompt, but not inside a vim terminal.
Is this supported ?  Is there something I need to add (tmap etc.) ?

thanks for any/all help,
-m

--
--
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/3a0bd13a-cd09-4916-8eac-1ee74bbb217en%40googlegroups.com.

vim terminal - cannot generate C-Space (C-@)

Hi,

Thank you for awesome vim!

In a vim terminal I cannot seem to get a C-@ key.
This works fine in vim itself and at a normal shell prompt, but not inside a vim terminal.
Is this supported ?  Is there something I need to add (tmap etc.) ?

thanks for any/all help,
-m

--
--
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/984ee63e-7557-481a-b23a-7b541ad15412n%40googlegroups.com.

Re: Vim8.2.2154 html filetype detection cause error incompatiblity with vim9script

https://github.com/niva-xx/vim-sequence-diagram/blob/master/sample/CaptureOut.PNG

Le lundi 21 décembre 2020 à 15:14:51 UTC+1, Ni Va a écrit :
 Solved by migrating this plugin from vimscript to vim9script (adding feature to auto open file in web browser on windows).
Le lundi 21 décembre 2020 à 10:03:15 UTC+1, Ni Va a écrit :
In screeshot the only commented line I got grepping au Filetype html in all my distribution.

Le lun. 21 déc. 2020 à 09:48, Ni Va <niva...@gmail.com> a écrit :
Hi Bram,

  • The only line I got grepping in all my Vim distribution is commented in _vimrc.


title: some title
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks! 

Thank you.

Le samedi 19 décembre 2020 à 13:32:55 UTC+1, Bram Moolenaar a écrit :

Tony wrote:

> On Fri, Dec 18, 2020 at 11:57 AM Ni Va <niva...@gmail.com> wrote:
> >
> > Hi,
> >
> > When opening html file in new buffer while my _vimrc is written in vim9script,
> > this message appears:
> >
> > Messages maintainer: Bram Moolenaar
> > "~\Desktop\filetype.vim.html" 2315L, 216123B
> > Error detected while processing BufRead Autocommands for "*.html"..function dist#ft#FThtml[13]..FileType Autocommands for "html":
> > E1126: Cannot use :let in Vim9 script
> > E1126: Cannot use :let in Vim9 script
>
> IOW, a script (without vim9script in it) sourced from an autocommand
> triggered from Vim9 script is erroneously interpreted as if it were
> itself a Vim9 script.

What is the line in the vimrc then?


The error points to the FThtml() function in
runtime/autoload/dis/ft.vim,
the command:
setf FALLBACK html

I guess there is an "au Filetype html" command that is triggered then,
but I can't reproduce a problem with that.

--
CRONE: Who sent you?
ARTHUR: The Knights Who Say GNU!
CRONE: Aaaagh! (she looks around in rear) No! We have no licenses here.
"Monty Python and the Holy editor wars" PYTHON (MONTY) SOFTWARE LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/X3Ndrb_gFpk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/befd416c-340b-4664-b2af-cc4406e83c8cn%40googlegroups.com.

--
--
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/58a301a2-a992-4031-b1da-c78c04b1ebcdn%40googlegroups.com.

Re: Vim8.2.2154 html filetype detection cause error incompatiblity with vim9script

 Solved by migrating this plugin from vimscript to vim9script (adding feature to auto open file in web browser on windows).
Le lundi 21 décembre 2020 à 10:03:15 UTC+1, Ni Va a écrit :
In screeshot the only commented line I got grepping au Filetype html in all my distribution.

Le lun. 21 déc. 2020 à 09:48, Ni Va <niva...@gmail.com> a écrit :
Hi Bram,

  • The only line I got grepping in all my Vim distribution is commented in _vimrc.


title: some title
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks! 

Thank you.

Le samedi 19 décembre 2020 à 13:32:55 UTC+1, Bram Moolenaar a écrit :

Tony wrote:

> On Fri, Dec 18, 2020 at 11:57 AM Ni Va <niva...@gmail.com> wrote:
> >
> > Hi,
> >
> > When opening html file in new buffer while my _vimrc is written in vim9script,
> > this message appears:
> >
> > Messages maintainer: Bram Moolenaar
> > "~\Desktop\filetype.vim.html" 2315L, 216123B
> > Error detected while processing BufRead Autocommands for "*.html"..function dist#ft#FThtml[13]..FileType Autocommands for "html":
> > E1126: Cannot use :let in Vim9 script
> > E1126: Cannot use :let in Vim9 script
>
> IOW, a script (without vim9script in it) sourced from an autocommand
> triggered from Vim9 script is erroneously interpreted as if it were
> itself a Vim9 script.

What is the line in the vimrc then?


The error points to the FThtml() function in
runtime/autoload/dis/ft.vim,
the command:
setf FALLBACK html

I guess there is an "au Filetype html" command that is triggered then,
but I can't reproduce a problem with that.

--
CRONE: Who sent you?
ARTHUR: The Knights Who Say GNU!
CRONE: Aaaagh! (she looks around in rear) No! We have no licenses here.
"Monty Python and the Holy editor wars" PYTHON (MONTY) SOFTWARE LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/X3Ndrb_gFpk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/befd416c-340b-4664-b2af-cc4406e83c8cn%40googlegroups.com.

--
--
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/468d3082-cdd0-4e80-a037-3851409015d0n%40googlegroups.com.

Re: Vim8.2.2154 html filetype detection cause error incompatiblity with vim9script

In screeshot the only commented line I got grepping au Filetype html in all my distribution.

Le lun. 21 déc. 2020 à 09:48, Ni Va <nivaemail@gmail.com> a écrit :
Hi Bram,

  • The only line I got grepping in all my Vim distribution is commented in _vimrc.


title: some title
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks! 

Thank you.

Le samedi 19 décembre 2020 à 13:32:55 UTC+1, Bram Moolenaar a écrit :

Tony wrote:

> On Fri, Dec 18, 2020 at 11:57 AM Ni Va <niva...@gmail.com> wrote:
> >
> > Hi,
> >
> > When opening html file in new buffer while my _vimrc is written in vim9script,
> > this message appears:
> >
> > Messages maintainer: Bram Moolenaar
> > "~\Desktop\filetype.vim.html" 2315L, 216123B
> > Error detected while processing BufRead Autocommands for "*.html"..function dist#ft#FThtml[13]..FileType Autocommands for "html":
> > E1126: Cannot use :let in Vim9 script
> > E1126: Cannot use :let in Vim9 script
>
> IOW, a script (without vim9script in it) sourced from an autocommand
> triggered from Vim9 script is erroneously interpreted as if it were
> itself a Vim9 script.

What is the line in the vimrc then?


The error points to the FThtml() function in
runtime/autoload/dis/ft.vim,
the command:
setf FALLBACK html

I guess there is an "au Filetype html" command that is triggered then,
but I can't reproduce a problem with that.

--
CRONE: Who sent you?
ARTHUR: The Knights Who Say GNU!
CRONE: Aaaagh! (she looks around in rear) No! We have no licenses here.
"Monty Python and the Holy editor wars" PYTHON (MONTY) SOFTWARE LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/X3Ndrb_gFpk/unsubscribe.
To unsubscribe from this group and all its topics, 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/befd416c-340b-4664-b2af-cc4406e83c8cn%40googlegroups.com.

--
--
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/CAOKxv4F3dzmXCRyqhGtAJ_t1yAVXicY0qojgju4PCAE2%2Bm2Q8Q%40mail.gmail.com.