Tuesday, March 17, 2020

Re: [EXTERNAL] Re: Mouse not working last 20% of screen

> Punch 80 times octal 07777 in binary mode in each of them, throw away
> the cards but keep the confetti, and use them ne next time weddings
> will be permitted.
>
>

Seriously, don't do that. Punched card chads are sharp and hard enough to
cause eye injuries.


--
--
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/057622ec486d682288e721797ad6ac39.squirrel%40webmail.vybenetworks.com.

Re: Mouse not working last 20% of screen

On Tue, Mar 17, 2020 at 6:57 AM Benjamin Esham <usenet@esham.io> wrote:
>
> Tony Mechelynck wrote:
>
> > On Mon, Mar 16, 2020 at 6:04 PM Tony Mechelynck
> > <antoine.mechelynck@gmail.com> wrote:
> >
> >> Update: manually setting ttymouse=sgr in konsole 18.12.3 makes it
> >> work, even though it only admits to xterm equivalent version 115,
> >> which would normally mean ttymouse=xterm2.
> >>
> >> Best rgards,
> >> Tony.
> >
> > OK, I'll add the following to my vimrc, but it is a hack, and not
> > guaranteed to work:
> >
> > au TermResponse *
> > \ if &ttym == 'xterm2' | set ttym=sgr | endif
> >
> > Best regards,
> > Tony.
>
> I don't suppose your terminal emulator sets $TERM_PROGRAM? (As far as I've
> been able to tell, this environment variable is a macOS-ism, but if you can
> use it it seems like it might solve your problem neatly.)
>
> Benjamin

No it doesn't. "set | less" at the bash prompt lists (among others)
all environment variables in alphabetical order, and the only one
whose name starts with T is TERM=xterm-256color

In a "real" xterm there are two of them, namely TERM=xterm and
TS1=$'\E7\E]2;%s@%s:%s\a\E]1;%s\a\E8' ; in a non-X console (e.g.
Ctrl-Alt-F2) it's just TERM=linux ; and in gnome-terminal (which I
rarely use) v:termresponse is ^[[>1;5002;0c ("xterm version 5002", no
kidding) and Vim, seeing that, sets ttymouse=sgr with no user
intervention (even if started with -u DEFAULTS).

Best regards,
Tony.

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

Monday, March 16, 2020

Re: Mouse not working last 20% of screen

Tony Mechelynck wrote:

> On Mon, Mar 16, 2020 at 6:04 PM Tony Mechelynck
> <antoine.mechelynck@gmail.com> wrote:
>
>> Update: manually setting ttymouse=sgr in konsole 18.12.3 makes it
>> work, even though it only admits to xterm equivalent version 115,
>> which would normally mean ttymouse=xterm2.
>>
>> Best rgards,
>> Tony.
>
> OK, I'll add the following to my vimrc, but it is a hack, and not
> guaranteed to work:
>
> au TermResponse *
> \ if &ttym == 'xterm2' | set ttym=sgr | endif
>
> Best regards,
> Tony.

I don't suppose your terminal emulator sets $TERM_PROGRAM? (As far as I've
been able to tell, this environment variable is a macOS-ism, but if you can
use it it seems like it might solve your problem neatly.)

Benjamin

--
--
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/k7v6dhl4.f29ttp%40bdesham.net.

XQuery indentation and syntax file

Hi,

This seems to be a quite old vim file for XQuery.

https://github.com/jeroenp/vim-xquery-syntax

This is also very old and seems to be buggy.

https://github.com/vim-scripts/XQuery-indentomnicompleteftplugin/blob/master/ftplugin/xquery.vim

Are there updated XQuery indentation and syntax files to be used? Thanks.

PS. The original message was burried under a wrong thread. So I resend
this message.

--
Regards,
Peng

--
--
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/CABrM6wmgv%3Dd-KCn7uXX1Qxbw5kYyaMxQRU%3DESoTvV_Lx7FYnWA%40mail.gmail.com.

XQuery indentation and syntax file

Hi,

This seems to be a quite old vim file for XQuery.

https://github.com/jeroenp/vim-xquery-syntax

This is also very old and seems to be buggy.

https://github.com/vim-scripts/XQuery-indentomnicompleteftplugin/blob/master/ftplugin/xquery.vim

Are there updated XQuery indentation and syntax files to be used? Thanks.

--
Regards,
Peng

--
--
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/CABrM6wk73u1fRvLbDMpogDJ7FvMNME4iqhcXxfvGRa1Yr%3DYomA%40mail.gmail.com.

Re: Using non-greedy quantifiers with substitute()

Thank you so much- I had no idea about single quote strings.

On Mon, Mar 16, 2020 at 6:32 PM John Little <john.b.little@gmail.com> wrote:
You've used a double-quote string, which processes backslash characters, for the pattern. Either double the backslash, or use a single-quote string:

echo substitute("#|\nmulti-line comment\n|#",'#|.\{-}|#',"","g")

HTH, and regards,

John Little

--
--
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/ac338094-581e-4b28-9598-7da9a0160b40%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/CAGyWG1tQDmYLzzKYuPpfLkO8zdq3K_jvJ%3Dhwe3kXDrbAkQGHBw%40mail.gmail.com.

Re: Using non-greedy quantifiers with substitute()

You've used a double-quote string, which processes backslash characters, for the pattern. Either double the backslash, or use a single-quote string:

echo substitute("#|\nmulti-line comment\n|#",'#|.\{-}|#',"","g")

HTH, and regards,

John Little

--
--
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/ac338094-581e-4b28-9598-7da9a0160b40%40googlegroups.com.