Re: Mouse not working last 20% of screen

2020-03-16 Thread Benjamin Esham
Tony Mechelynck wrote:

> On Mon, Mar 16, 2020 at 6:04 PM Tony Mechelynck
>  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  == '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+unsubscr...@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

2020-03-16 Thread Peng Yu
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+unsubscr...@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

2020-03-16 Thread Peng Yu
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+unsubscr...@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()

2020-03-16 Thread Felix Thibault
Thank you so much- I had no idea about single quote strings.

On Mon, Mar 16, 2020 at 6:32 PM John Little  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+unsubscr...@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+unsubscr...@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()

2020-03-16 Thread John Little
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+unsubscr...@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.


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

2020-03-16 Thread Tony Mechelynck
On Mon, Mar 16, 2020 at 9:09 PM Bram Moolenaar  wrote:
> Maybe you have an idea what to do with that pile of punched cards?
> Somehow I don't have any papertape...  :-)

Punch 80 times octal 0 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.

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAJkCKXtvVf7qaoXA6HmnJbROXMJAv8caAYWqjCd1PiGohFKhLw%40mail.gmail.com.


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

2020-03-16 Thread Kennedy, Marcus A.


> Maybe you have an idea what to do with that pile of punched cards?
> Somehow I don't have any papertape...  :-)

After that one election, haven't we had enough discussions about chads ;)?

That was the biggest bunch of crap I've ever seen. . . and I'm in Alabama.
We have VERY large piles of crap all over ;)

Andy

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/5ADFF93892EDB147B66FCBABC8E4F27F4421F843%40prgmbx01.


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

2020-03-16 Thread Bram Moolenaar


> >> I cannot use the mouse when it is in the last 20% of the screen
> >
> >I don't want to be a nuisance, but the whole idea of Vim is that you
> >only use the keyboard, because it is faster and more precise. 
> >
> >Admit it takes some time to re-train using your computer, but believe
> >me: using just Vim keystrokes is the best thing in editing.
> >
> >//meine
> 
> 
> Thanks for the suggestion meine!
> 
> I'm old.  I'm old school.  October of '93 when I started with vim and Linux 
> there was no
> GUI, only the ttys on Alt-F1 - Alt-F7.  There was no mouse either as I 
> usually used my
> two serial comports as modem connections (PS2 didn't come out until later and 
> I couldn't
> afford a Cyclades).
> 
> The mouse is useful sometimes.  Usually when I'm attempting to scroll one of 
> the right
> windows up or down without moving my cursor from the place I'm at.
> 
> So, yes, I use the keyboard about 90% of the time.
> 
> That other 10% was beginning to bug me ;)!

Maybe you have an idea what to do with that pile of punched cards?
Somehow I don't have any papertape...  :-)

-- 
Ten bugs in the hand is better than one as yet undetected.

 /// Bram Moolenaar -- b...@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 the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/202003162009.02GK9Coj019858%40masaka.moolenaar.net.


Using non-greedy quantifiers with substitute()

2020-03-16 Thread Felix Thibault
I'm having problems with a plugin and I've narrowed it down to one line. If 
I write:
echo substitute("#|\nmulti-line comment\n|#","#|.*|#","","g")


the substitution happens like expected. But if I use a non-greedy 
quantifier I get the original string unchanged
echo  substitute("#|\nmulti-line comment\n|#","#|.\{-}|#","","g")



-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/dd3b2557-353c-4bb6-8f0e-19f566e0c4b2%40googlegroups.com.


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

2020-03-16 Thread Kennedy, Marcus A.


>>
>> I cannot use the mouse when it is in the last 20% of the screen
>
>I don't want to be a nuisance, but the whole idea of Vim is that you
>only use the keyboard, because it is faster and more precise. 
>
>Admit it takes some time to re-train using your computer, but believe
>me: using just Vim keystrokes is the best thing in editing.
>
>//meine


Thanks for the suggestion meine!

I'm old.  I'm old school.  October of '93 when I started with vim and Linux 
there was no
GUI, only the ttys on Alt-F1 - Alt-F7.  There was no mouse either as I usually 
used my
two serial comports as modem connections (PS2 didn't come out until later and I 
couldn't
afford a Cyclades).

The mouse is useful sometimes.  Usually when I'm attempting to scroll one of 
the right
windows up or down without moving my cursor from the place I'm at.

So, yes, I use the keyboard about 90% of the time.

That other 10% was beginning to bug me ;)!

Andy

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/5ADFF93892EDB147B66FCBABC8E4F27F4421F7D7%40prgmbx01.


Re: Mouse not working last 20% of screen

2020-03-16 Thread Tony Mechelynck
On Mon, Mar 16, 2020 at 7:37 PM meine  wrote:
>
> On Mon, Mar 16, 2020 at 04:09:55PM +, Kennedy, Marcus A. wrote:
> >
> > I cannot use the mouse when it is in the last 20% of the screen
>
> I don't want to be a nuisance, but the whole idea of Vim is that you
> only use the keyboard, because it is faster and more precise.
>
> Admit it takes some time to re-train using your computer, but believe
> me: using just Vim keystrokes is the best thing in editing.
>
> //meine

Well, I don't want to be a nuisance, but the whole idea of Vim is that
there are several ways to do one thing: use hjkl when it suits you,
use arrow keys when it suits you, use the mouse when it suits you, in
fact use whatever is available. If the whole idea of Vim were never to
use the mouse, it wouldn't suport it. Same thing for the arrow keys.

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAJkCKXtAO5-sFEB412xqxQGLhYWxyEOctDtU%2BSGLFvxspMMJDg%40mail.gmail.com.


Re: Mouse not working last 20% of screen

2020-03-16 Thread meine
On Mon, Mar 16, 2020 at 04:09:55PM +, Kennedy, Marcus A. wrote:
>
> I cannot use the mouse when it is in the last 20% of the screen

I don't want to be a nuisance, but the whole idea of Vim is that you
only use the keyboard, because it is faster and more precise.

Admit it takes some time to re-train using your computer, but believe
me: using just Vim keystrokes is the best thing in editing.

//meine

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200316183721.GC31807%40trackstand.


Re: wrap text at col. 80 on large-ish files - performance aspects.

2020-03-16 Thread Chris Jones
On Mon, Mar 16, 2020 at 01:35:45PM EDT, Tony Mechelynck wrote:
[..]
> 
> To see if it's your custom tabline and/or statusline, you can load Vim
> with your usual vimrc, then type
> 
> :set tal= stl=
> 
> and see if it makes a difference. If it does, then retry by setting
> the one but not the other to empty (both ways) to see if it's the one,
> the other, or both. Then look for "slow stuff" in whichever is/are the
> culprit.

Thanks. That'll save me some work/research.

CJ

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200316183527.GD9054%40turki.local.


Re: Making a tarball

2020-03-16 Thread arocker
>
> To make (or unpack) a tarball in general: at the shell prompt
> man tar
>

Just to amplify that a bit, with $ representing the shell prompt:

to create a tarball:
$ tar -cvzf name_of_archive_to_create directory_to_send

That will show you the files in "directory_to_send"  being wrapped up. If
it's only one file at a time, just give the filename. Use a relative path,
not an absolute one, so you can restore anywhere you want.

To unpack, cd into the directory you want to use, and execute
$ tar -xzvf name_of_archive_to create

If you don't want to see all the filenames, omit the "v" option. The "f"
option must be the last thing before the filename.

HTH.

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/4ebbdc3e4398badfa118e301548b7d88.squirrel%40mail.vybenetworks.com.


Re: Wrapg text at col. 80 on large-ish files - performance aspects.

2020-03-16 Thread Tony Mechelynck
On Mon, Mar 16, 2020 at 5:11 PM Chris Jones  wrote:
>
> On Sun, Mar 15, 2020 at 02:10:56PM EDT, Tim Chase wrote:
> > On 2020-03-15 11:44, Chris Jones wrote:
> > > What is the recommended way to wrap files at column 80 or thereabout
> > > when dealing with 5,000-10,000 lines files without a major
> > > performance hit?
> >
> > Strange.  I do this regularly and have never encountered any issues.
> >
> > Have you attempted it without any plugins/non-defaults?
> >
> >   $ vim -u NONE file_with_long_lines.txt
> >
> > Also, is there any difference if you use "gq" to reformat instead of
> > "gw" (maybe there's something weird in the "maintain the cursor
> > location" code)?
> >
> > > I tried searching for lines longer than 80 characters and running
> > > 'gwap' on the paragraph where they appear using the
> > > :g/long-line/gwap but this doesn't seem to help.
> >
> > I presume you mean something like
> >
> >   :g/\%80c/norm gww
> >
> > > It takes something like 10 minutes to complete this task suggesting
> > > I am not doing it right.
> >
> > For a file that small, that's a ridiculous amount of time, so your
> > gut reaction is spot on.  But I'd far sooner point the finger at some
> > rogue plugin than point it at something you're "not doing right",
> > 'cuz you *are* doing it right.
> >
> > > Is there a better way to do it inside a vim session or should I
> > > exit vim and run one of a number of utilities from the shell
> > > command prompt?
> >
> > The fmt(1) utility might lend a hand here, whether invoked inside vim:
> >
> >   :%!fmt
> >
> > or externally
> >
> >   $ fmt -80 file_with_long_lines.txt > wrapped_file.txt
> >
> > There's also a fold(1) utility that behaves similarly, with subtle
> > nuances in their differences, but for the most part, they should
> > behave roughly the same for this use-case.
> >
> [...]
>
> With vim - u NONE... & a set tw=80 a (normal) gggwG is quasi instaneous
> on a 5830 lines test file. With vim the way I have it set up ( that's
> what I really meant by 'doing it wrong'...) the same scenario took 15-16
> minutes to complete.
>
> I don't have that many plugins installed/loaded (cscope, zoomwin, and
> a few others that shouldn't interfere with buffer reformatting (they
> look like the kind that presumably just sits there doing nothing until
> you call them explicitly) so my impression is that this must be related
> to stuff that might cause vim to refresh the screen automatically such
> as perhaps my custom tabline and statusline (?)... after all if either
> vim or a widely-used plugin was the culprit the chances are other people
> would have had the problem & reported it.

To see if it's your custom tabline and/or statusline, you can load Vim
with your usual vimrc, then type

:set tal= stl=

and see if it makes a difference. If it does, then retry by setting
the one but not the other to empty (both ways) to see if it's the one,
the other, or both. Then look for "slow stuff" in whichever is/are the
culprit.


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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAJkCKXuTzVa0qzCJUismR-H%3DmD%3DDQGpYZHJFZPFXNmFXcg_5Kg%40mail.gmail.com.


Re: Mouse not working last 20% of screen

2020-03-16 Thread Tony Mechelynck
OK, I'll add the following to my vimrc, but it is a hack, and not
guaranteed to work:

au TermResponse *
\ if  == 'xterm2' | set ttym=sgr | endif

Best regards,
Tony.

On Mon, Mar 16, 2020 at 6:04 PM Tony Mechelynck
 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.
>
> On Mon, Mar 16, 2020 at 5:57 PM Tony Mechelynck
>  wrote:
> >
> > On Mon, Mar 16, 2020 at 5:49 PM Gary Johnson  wrote:
> > >
> > > On 2020-03-16, Kennedy, Marcus A. wrote:
> > > > Hello,
> > > >
> > > > This issue has been going on for about 6-8 years and on multiple 
> > > > systems.  I cannot
> > > > use the mouse when it is in the last 20% of the screen (no click, 
> > > > scroll, select, etc).
> > > > I'm using Slackware 14.2 with the stock versions of KDE, Konsole, and 
> > > > vim.
> > > >
> > > > I attempted mouse operations on the right side of the screen with pico 
> > > > and it works.
> > > >
> > > > Anyone have any ideas as to why this is happening?
> > >
> > > Try
> > >
> > > set ttymouse=sgr
> > >
> > > See
> > >
> > > :help 'ttymouse'
> > >
> > > HTH,
> > > Gary
> >
> > Yeah, sgr mouse will be set if an xterm (or pseudo-xterm) version is
> > >= 277 (per the middle number in v:termresponse). Since my konsole
> > pretends to be xterm version 115, Vim does _not_ recognize it as
> > sgr-capable. My "real" xterm, OTOH, is version 330, so there it would
> > work even if 'columns' were higher.
> >
> > Without sgr capability, an xterm only "sees" the mouse if no farther
> > right than column 223.
> >
> > 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAJkCKXut7B%2BQ3nBMzYaPsZYkpBVovVf7a8bEOBbsgn7FmaHsMA%40mail.gmail.com.


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

2020-03-16 Thread Kennedy, Marcus A.


> Try
>
> set ttymouse=sgr
>

Wow.  I should have asked this ages ago.

Thanks Gary, Marius, and Tony!

Andy

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/5ADFF93892EDB147B66FCBABC8E4F27F4421F733%40prgmbx01.


Re: Mouse not working last 20% of screen

2020-03-16 Thread Tony Mechelynck
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.

On Mon, Mar 16, 2020 at 5:57 PM Tony Mechelynck
 wrote:
>
> On Mon, Mar 16, 2020 at 5:49 PM Gary Johnson  wrote:
> >
> > On 2020-03-16, Kennedy, Marcus A. wrote:
> > > Hello,
> > >
> > > This issue has been going on for about 6-8 years and on multiple systems. 
> > >  I cannot
> > > use the mouse when it is in the last 20% of the screen (no click, scroll, 
> > > select, etc).
> > > I'm using Slackware 14.2 with the stock versions of KDE, Konsole, and vim.
> > >
> > > I attempted mouse operations on the right side of the screen with pico 
> > > and it works.
> > >
> > > Anyone have any ideas as to why this is happening?
> >
> > Try
> >
> > set ttymouse=sgr
> >
> > See
> >
> > :help 'ttymouse'
> >
> > HTH,
> > Gary
>
> Yeah, sgr mouse will be set if an xterm (or pseudo-xterm) version is
> >= 277 (per the middle number in v:termresponse). Since my konsole
> pretends to be xterm version 115, Vim does _not_ recognize it as
> sgr-capable. My "real" xterm, OTOH, is version 330, so there it would
> work even if 'columns' were higher.
>
> Without sgr capability, an xterm only "sees" the mouse if no farther
> right than column 223.
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAJkCKXvtYz5k0bphDhoj38OANKGX1s86znDdxQFQd6C7KE5_aA%40mail.gmail.com.


Re: Mouse not working last 20% of screen

2020-03-16 Thread Marius Gedminas
On Mon, Mar 16, 2020 at 05:41:55PM +0100, Tony Mechelynck wrote:
> On Mon, Mar 16, 2020 at 5:10 PM Kennedy, Marcus A.
>  wrote:
> > This issue has been going on for about 6-8 years and on multiple systems.  
> > I cannot
> > use the mouse when it is in the last 20% of the screen (no click, scroll, 
> > select, etc).
> > I'm using Slackware 14.2 with the stock versions of KDE, Konsole, and vim.
> >
> > I attempted mouse operations on the right side of the screen with pico and 
> > it works.
> >
> > Anyone have any ideas as to why this is happening?
> 
> I don't know WHY this happens but I confirm THAT it happens in my
> Konsole terminal, version 18.12.3, where v:termresponse is
> ^[[>0;115;0c — clicking the mouse moves the cursor, but only if no
> farther than in virtual column 223. This is a _screen_ column and
> applies to any of the screen lines of a wrapped file line.

Check the 'ttymouse' setting.  The "xterm" mouse protocol doesn't support
columns beyond 223.

I'm using gnome-terminal and my vim automatically detects this and sets
ttymouse to sgr, which doesn't have the 223-column limit.

Try manually forcing :set ttymouse=sgr, see if that helps.

Assuming it does: I don't know if vim can autodetect Konsole, given that
it self-reports as xterm 115.  According to :help 'ttymouse', the sgr
protocol was added in xterm 277.

HTH,
Marius Gedminas
-- 
"question = (to) ? be : !be;" -- Shakespeare

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200316165731.6yd57lwkl3oslnwz%40blynas.


signature.asc
Description: PGP signature


Re: Mouse not working last 20% of screen

2020-03-16 Thread Tony Mechelynck
On Mon, Mar 16, 2020 at 5:49 PM Gary Johnson  wrote:
>
> On 2020-03-16, Kennedy, Marcus A. wrote:
> > Hello,
> >
> > This issue has been going on for about 6-8 years and on multiple systems.  
> > I cannot
> > use the mouse when it is in the last 20% of the screen (no click, scroll, 
> > select, etc).
> > I'm using Slackware 14.2 with the stock versions of KDE, Konsole, and vim.
> >
> > I attempted mouse operations on the right side of the screen with pico and 
> > it works.
> >
> > Anyone have any ideas as to why this is happening?
>
> Try
>
> set ttymouse=sgr
>
> See
>
> :help 'ttymouse'
>
> HTH,
> Gary

Yeah, sgr mouse will be set if an xterm (or pseudo-xterm) version is
>= 277 (per the middle number in v:termresponse). Since my konsole
pretends to be xterm version 115, Vim does _not_ recognize it as
sgr-capable. My "real" xterm, OTOH, is version 330, so there it would
work even if 'columns' were higher.

Without sgr capability, an xterm only "sees" the mouse if no farther
right than column 223.

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAJkCKXv5-KpuOSoUB2YWzBTZQqD9nXisYhzA5kgrE47jNFwgvQ%40mail.gmail.com.


Re: Mouse not working last 20% of screen

2020-03-16 Thread Gary Johnson
On 2020-03-16, Kennedy, Marcus A. wrote:
> Hello,
> 
> This issue has been going on for about 6-8 years and on multiple systems.  I 
> cannot
> use the mouse when it is in the last 20% of the screen (no click, scroll, 
> select, etc).
> I'm using Slackware 14.2 with the stock versions of KDE, Konsole, and vim.
> 
> I attempted mouse operations on the right side of the screen with pico and it 
> works.
> 
> Anyone have any ideas as to why this is happening?

Try

set ttymouse=sgr

See

:help 'ttymouse'

HTH,
Gary

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200316164818.GB9925%40phoenix.


Re: Mouse not working last 20% of screen

2020-03-16 Thread Tony Mechelynck
On Mon, Mar 16, 2020 at 5:10 PM Kennedy, Marcus A.
 wrote:
>
>
> Hello,
>
> This issue has been going on for about 6-8 years and on multiple systems.  I 
> cannot
> use the mouse when it is in the last 20% of the screen (no click, scroll, 
> select, etc).
> I'm using Slackware 14.2 with the stock versions of KDE, Konsole, and vim.
>
> I attempted mouse operations on the right side of the screen with pico and it 
> works.
>
> Anyone have any ideas as to why this is happening?
>
> Thanks,
> Andy

I don't know WHY this happens but I confirm THAT it happens in my
Konsole terminal, version 18.12.3, where v:termresponse is
^[[>0;115;0c — clicking the mouse moves the cursor, but only if no
farther than in virtual column 223. This is a _screen_ column and
applies to any of the screen lines of a wrapped file line.

In a "real" xterm, I don't know, because there I have 'columns' set to
200 and it takes the whole screen width (the font is a little bigger
and a lot uglier).

In gvim I have set a minuscule font (Bitstream Vera Sans Mono 4) to
test what happens, and I can move the cursor to the very right margin
by clicking.

Oh, and my Vim version is 8.2.389, Big, GUI-enabled, with GTK2 GUI.

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAJkCKXvxmOr0k_tviGwB-LOmVQOCgs48vAZn_tAOZ2OqbsCrQw%40mail.gmail.com.


Re: Mouse not working last 20% of screen

2020-03-16 Thread Shlomi Fish
Hi Andy,

On Mon, 16 Mar 2020 16:09:55 +
"Kennedy, Marcus A."  wrote:

> Hello,
> 
> This issue has been going on for about 6-8 years and on multiple systems.  I
> cannot use the mouse when it is in the last 20% of the screen (no click,
> scroll, select, etc). I'm using Slackware 14.2 with the stock versions of
> KDE, Konsole, and vim.
> 
> I attempted mouse operations on the right side of the screen with pico and it
> works.
> 

In konsole on kde plasma5 on fedora 31 x86-64 , clicking the mouse does nothing
in any part of the screen with all of 'nano', 'pico' and 'vim'. It works fine
in the gtk+ based gvim, which isn't a console/terminal app.

> Anyone have any ideas as to why this is happening?
> 
> Thanks,
> Andy
> 



-- 

Shlomi Fish   https://www.shlomifish.org/
https://github.com/shlomif/what-you-should-know-about-automated-testing

Flock aims to be the browser for the social web, but I found it to be the
completely anti-social browser.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200316183221.48fad032%40telaviv1.shlomifish.org.


Re: Wrap text at col. 80 on large-ish files - performance aspects.

2020-03-16 Thread Chris Jones
Fix typo in issue Subject (:s//Wrapg/wrap/)

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200316161428.GC9054%40turki.local.


Re: Wrapg text at col. 80 on large-ish files - performance aspects.

2020-03-16 Thread Chris Jones
On Sun, Mar 15, 2020 at 02:10:56PM EDT, Tim Chase wrote:
> On 2020-03-15 11:44, Chris Jones wrote:
> > What is the recommended way to wrap files at column 80 or thereabout
> > when dealing with 5,000-10,000 lines files without a major
> > performance hit?
> 
> Strange.  I do this regularly and have never encountered any issues.
> 
> Have you attempted it without any plugins/non-defaults?
> 
>   $ vim -u NONE file_with_long_lines.txt
> 
> Also, is there any difference if you use "gq" to reformat instead of
> "gw" (maybe there's something weird in the "maintain the cursor
> location" code)?
> 
> > I tried searching for lines longer than 80 characters and running
> > 'gwap' on the paragraph where they appear using the
> > :g/long-line/gwap but this doesn't seem to help.
> 
> I presume you mean something like
> 
>   :g/\%80c/norm gww
> 
> > It takes something like 10 minutes to complete this task suggesting
> > I am not doing it right.
> 
> For a file that small, that's a ridiculous amount of time, so your
> gut reaction is spot on.  But I'd far sooner point the finger at some
> rogue plugin than point it at something you're "not doing right",
> 'cuz you *are* doing it right.
> 
> > Is there a better way to do it inside a vim session or should I
> > exit vim and run one of a number of utilities from the shell
> > command prompt?
> 
> The fmt(1) utility might lend a hand here, whether invoked inside vim:
> 
>   :%!fmt
> 
> or externally
> 
>   $ fmt -80 file_with_long_lines.txt > wrapped_file.txt
> 
> There's also a fold(1) utility that behaves similarly, with subtle
> nuances in their differences, but for the most part, they should
> behave roughly the same for this use-case.
>
[...]

With vim - u NONE... & a set tw=80 a (normal) gggwG is quasi instaneous
on a 5830 lines test file. With vim the way I have it set up ( that's
what I really meant by 'doing it wrong'...) the same scenario took 15-16
minutes to complete.

I don't have that many plugins installed/loaded (cscope, zoomwin, and
a few others that shouldn't interfere with buffer reformatting (they
look like the kind that presumably just sits there doing nothing until
you call them explicitly) so my impression is that this must be related
to stuff that might cause vim to refresh the screen automatically such
as perhaps my custom tabline and statusline (?)... after all if either
vim or a widely-used plugin was the culprit the chances are other people
would have had the problem & reported it. 

In any event I'll take a hard look at all the crud that has accumulated
in my vim environment (~/.vimrc & ~/.vim/ directory) over the last 20
years and disable it.

As recommended I also gave the :%!fmt workaround a shot and likewise it
completed before I had time to take my hands off the keyboard.

Since I do not have the time now to look into this further I am going to
use this for the time being and do some vim spring cleaning in a big way
some time next month. I am thinking rebuilding my vim environment one
brick at a time... something long overdue... is probably what needs to
be done at this point.

Thank you very much indeed for your quick response and excellent advice.

CJ

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20200316161133.GB9054%40turki.local.


Mouse not working last 20% of screen

2020-03-16 Thread Kennedy, Marcus A.


Hello,

This issue has been going on for about 6-8 years and on multiple systems.  I 
cannot
use the mouse when it is in the last 20% of the screen (no click, scroll, 
select, etc).
I'm using Slackware 14.2 with the stock versions of KDE, Konsole, and vim.

I attempted mouse operations on the right side of the screen with pico and it 
works.

Anyone have any ideas as to why this is happening?

Thanks,
Andy

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/5ADFF93892EDB147B66FCBABC8E4F27F4421F6DC%40prgmbx01.


Re: Making a tarball

2020-03-16 Thread Tony Mechelynck
On Mon, Mar 16, 2020 at 3:35 PM Eric Weir  wrote:
>
>
> Been away from Vim for a while. Skills rusty. I’ve got iVim running on my 
> iPad. I’d like to put my files in the cloud—Dropbox or iCloud—so they can be 
> accessed from MacVim on my MacBook.
>
> Tarball has been suggested as the best way to move files from my iVim 
> documents folder. Haven’t a clue how to go about it. I’ve always found Vim 
> help difficult to navigate, and often to understand. References to it 
> appreciated. Even more references to other sources.
>
> Thanks,
> --
> Eric Weir
> Decatur, GA  USA
> eew...@bellsouth.net

For particular packages: type from within Vim
:help pi_vimball.txt

To make (or unpack) a tarball in general: at the shell prompt
man tar

Bezst 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/CAJkCKXuYpsMW9u2PV9m8e1uNi1PH%2B4Aojo39_7Eugi_zASqzyA%40mail.gmail.com.


Making a tarball

2020-03-16 Thread Eric Weir


Been away from Vim for a while. Skills rusty. I’ve got iVim running on my iPad. 
I’d like to put my files in the cloud—Dropbox or iCloud—so they can be accessed 
from MacVim on my MacBook. 

Tarball has been suggested as the best way to move files from my iVim documents 
folder. Haven’t a clue how to go about it. I’ve always found Vim help difficult 
to navigate, and often to understand. References to it appreciated. Even more 
references to other sources.

Thanks,
--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net 

"(I)t is important that awake people be awake... the darkness around us is 
deep."

- William Stafford

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/A85A295E-09C9-4EA6-A5F4-2DEEE7E164E8%40bellsouth.net.