Tuesday, November 2, 2021

Re: TagBar 2.7 and ctags 5.9 exception closed GVim win32 x86 8.2.3558

Tagbar plugin is executing python3 command that is closing GVim.

See autoload/Tagbar.vim -> s:run_system(cmd, version)

Version of python not integrated yet : 3.11.0



Le samedi 23 octobre 2021 à 13:07:02 UTC+2, Ni Va a écrit :
Hi,

I daily use Gvim reading source code or other with TagBar plugin under Win10 OS under GVim 32bits x86 8.2.3558 build with ming under MSYS2.

It appears that TagBarToogle it works perfectly on my physical laptop Win10 64bits meanwhile an exception seems closing Gvim under Virtual MAchine under same OS.

Thanks for helping.
NiVa

Gvim
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Oct 23 2021 12:24:35)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-3558

TagBar
*tagbar.txt*    Display tags of a file ordered by scope

Author:         Jan Larres 
Licence:        Vim licence, see |license|
Version:        2.7


Ctags
Universal Ctags 5.9.0(c0b04ae1), Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Oct 13 2021, 16:48:46
  Optional compiled features: +win32, +wildcards, +regex, +gnulib_regex, +unix-path-separator, +iconv, +option-directory, +case-insensitive-filenames, +packcc, +optscript

--
--
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/2435ed6a-8482-442d-bb7c-27be32f15d16n%40googlegroups.com.

Monday, November 1, 2021

Re: [vim/vim] [question] How to remap ctrl + Left/Right (Issue #9059)

Hi,

For xterm*,  you might be able to try these instead of a mapping that starts with <Esc>, since that can sometimes lead to messing with timeouts and/or having a delay when pressing <Esc> to leave insert mode etc.

  exec "set <xHome>=\e[1;*H"
  exec "set <xEnd>=\e[1;*F"
  exec "set <xUp>=\e[1;*A"
  exec "set <xDown>=\e[1;*B"
  exec "set <xRight>=\e[1;*C"
  exec "set <xLeft>=\e[1;*D"

thx,
-m

On Wednesday, October 27, 2021 at 4:20:03 PM UTC-4 Gary Johnson wrote:
On 2021-10-27, Julio Guerrero wrote:
> Hi Gary, I have applied those changes in my vimrc but the problem remains,
> after I ran the verbose command maps are pointing to my vimrc (same lines I
> added). I'm sorry I did not know this is the dev repo, will move my question to
> the other repo.
>
> Hi lacygoill, as per your questions:
>
> • $TERM: screen-256color
> • E846: Key code not set:
> • Ctrl-V then Ctrl-Right, delete lines
> • I use tmux
> • TERM out multiplexer: same as inside VIM - screen-256color

I'm using a different terminal now than I was this morning. Running
vim within tmux, I now see the problem.

In insert mode Ctrl-V Ctrl-Left inserts:

^[[1;5D

Ctrl-V Ctrl-Right inserts:

^[[1;5C

See

:help i_CTRL-V

Pressing Ctrl-Left in either normal or insert modes deletes the next
5 lines. Pressing Ctrl-Right also deletes 5 lines but goes to
insert mode.

That makes sense. Vim doesn't recognize those escape sequences so
it processes them as normal keystrokes. In normal mode, Vim ignores
that first <Esc> (^[). In insert mode, that first <Esc> puts Vim
into normal mode. Vim does not recognize the sequence [1 and
appears to ignore it. The ; will repeat the latest f, t, F or
T command. That may or may not move the cursor and affect the next
command. 5D deletes 5 lines. 5C deletes from the cursor to the end
of the line 4 more lines and starts insert mode.

I don't know the right solution at the moment, but a workaround
would be to put this in your vimrc.

if &term == "screen-256color"
nnoremap <Esc>[1;5C <C-Right>
nnoremap <Esc>[1;5D <C-Left>
inoremap <Esc>[1;5C <C-Right>
inoremap <Esc>[1;5D <C-Left>
endif

Regards,
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/092676ff-9261-45b1-a7a3-379f17ddcf32n%40googlegroups.com.

Re: goyo plugin and artifacts in TTY

> for distraction free writing I like working in TTY -- terminal, no
> graphical environment. I also like using the Goyo plugin to make the
> lines ons screen shorter.
>
> When starting Goyo, artifacts of the previous screen-wide display of the
> text stay. Scrolling though the text doesn't remove them (as opposed to
> Goyo in a GUI, where resizing the window removes the artifacts).
>
> Does anyone know a solution to this?
>
> Maybe it is in the plugin code, but I'm not (yet) that skilled to find
> possible solutions.

I have seen this, only with the Apple Terminal app. It looks like a bug
in Terminal, since Vim cannot produce this pixel dust. You can report
the problem to Apple (but they have a history of being very
unresponsive).

--
Microsoft: "Windows NT 4.0 now has the same user-interface as Windows 95"
Windows 95: "Press CTRL-ALT-DEL to reboot"
Windows NT 4.0: "Press CTRL-ALT-DEL to login"

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20211101224510.ABA07C80053%40moolenaar.net.

Re: ch_open failed to connect to server

On So, 24 Okt 2021, Shidong Wang wrote:

> In neovim we can use sockconnect() to connect to a server. for example: sockconnect('tcp', 'imap.163.com:143'). I just test ch_open('imap.163.com:143'), it always failed.

Why would you like to connect to an IMAP server with Vim?

That sounds like really stretching the editor use case too far

Best,
Christian
--
Letzte Worte eines Bekloppten:
"Ich bin ein Vogel."

--
--
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/20211101202754.GA1723035%40256bit.org.

Saturday, October 30, 2021

Re: goyo plugin and artifacts in TTY

On 2021-10-30, meine <trialero@gmx.com> wrote:
> When starting Goyo, artifacts of the previous screen-wide display of the
> text stay. Scrolling though the text doesn't remove them (as opposed to
> Goyo in a GUI, where resizing the window removes the artifacts).

I do not have a solution, but I use Goyo and I cannot reproduce your
issue in my terminal (Apple's Terminal.app). You should provide more
details about your environment: Vim version, OS, terminal.

And have you searched for similar issues at
https://github.com/junegunn/goyo.vim/issues? You may have more luck
reporting your problem there.

Life.

--
--
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/slkcrd%24ucf%241%40ciao.gmane.io.

goyo plugin and artifacts in TTY

Hi,

for distraction free writing I like working in TTY -- terminal, no
graphical environment. I also like using the Goyo plugin to make the
lines ons screen shorter.

When starting Goyo, artifacts of the previous screen-wide display of the
text stay. Scrolling though the text doesn't remove them (as opposed to
Goyo in a GUI, where resizing the window removes the artifacts).

Does anyone know a solution to this?

Maybe it is in the plugin code, but I'm not (yet) that skilled to find
possible solutions.

TIA,

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

Friday, October 29, 2021

Re: upgrading past 8.2.2918 loses access to /dev/tty from athena gvim

On Sun, Oct 17, 2021 at 01:37:34PM +0100, Bram Moolenaar <Bram@moolenaar.net> wrote:

>
> > On Thu, Oct 14, 2021 at 04:28:14PM +0100, Bram Moolenaar <Bram@moolenaar.net> wrote:
> >
> > > > > Since more than one person complained about this, and it still doesn't
> > > > > fully work with zsh, I'll revert 8.2.2919. For zsh we need to find a
> > > > > different solution.
> > > >
> > > > Thanks. Maybe blocking SIGHUP would fix the original problem with
> > > > background processes?
> > >
> > > Hopefully someone can find out what the actualy problem is and find a
> > > solution that works and does not cause new problems.
> >
> > Hmm, SIGHUP is already ignored in the gui.
>
> Thanks for taking time to look into this.
>
> > My guess is that the original problem is that most
> > shells inherit gvim's ignoring of SIGHUP, but zsh
> > doesn't. So the command being executed doesn't ignore
> > SIGHUP either, and it dies when zsh terminates, rather
> > than when it's finished. But that is just a guess.
> >
> > It's strange. The original bug report was for Arch Linux.
> > But it works fine on Debian Linux. It doesn't work on macOS.
>
> Thus we don't fully understand the cause of the problem. Perhaps it's a
> specific zsh version or how it was configured?

I thought that too, i.e., maybe macOS (via macports)
and arch have a recent zsh that no longer works, but
debian stable might have an older version which still
works. But macports and debian stable both have zsh-5.8
which is the latest version. Arch should have the same.
Hmm, the system /bin/zsh on my macOS is zsh-5.3 and
that works fine. So it's still a mystery.

> > I tried the following things on macOS:
> >
> > - Append "; wait" to the command
> > - Prepend "setopt NO_HUP; " to the command
> > - Prepend "trap '' HUP; " to the command
> > - Prepend "setopt NO_HUP; trap '' HUP; " to the command
> > - set shellcmdflag=-o\ nohup\ -c
> >
> > The only thing that "fixed" it was appending "; wait"
> > to the command. Below is a patch that does that,
> > only when the gui is running and the shell is zsh and
> > there's an ampersand in the command (so "&&" will be a
> > false positive).
> >
> > [...]
> >
> > But it's awful and hacky. It "fixes" the problem by
> > effectively disabling the ability to background a
> > process in zsh. And since it isn't a problem on Debian
> > Linux, it would make things slightly worse on some
> > systems, but only for commands that actually take a
> > long time to execute.
> >
> > Unfortunately, dtruss on macOS isn't working well
> > enough for me to trace what's happening. Perhaps
> > someone with Arch Linux can use strace to investigate.
> >
> > Until then, the most practical solution is to just:
> >
> > set shell=/bin/bash
> >
> > That fixes it on macOS.
>
> Well, more a workaround than a fix. But indeed, just setting 'shell' to
> something else than zsh should be a workable solution for most users.
>
> I rather recommend using another shell than to include a hacky solution
> with side effects.

Indeed.

> --
> If Microsoft would build a car...
> ... Occasionally your car would die on the freeway for no
> reason. You would have to pull over to the side of the road,
> close all of the car windows, shut it off, restart it, and
> reopen the windows before you could continue. For some reason
> you would simply accept this.
>
> /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
> /// \\\
> \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
> \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

cheers,
raf

--
--
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/YXuzl5uK31sad0qC%40raf.org.