Re: Vip screen resize

2020-04-09 Thread Alexander Burger
Hi Wojtek, > for some reason it won't allow me to exit insert mode. It worked fine > yesterday and I have no idea what changed. Initially I thought it > might be some escaping issue, i.e. Esc/C-[ being interpreted as some > other symbol, but it works fine for Vim (both Esc and C-[). What I'm > get

Re: Vip screen resize

2020-04-09 Thread Wojciech Gac
Hi Mansur, Could be done, but since the function is meant to be run by manual invocation *and* after an infrequent operation (Tmux window resize), I'm not sure it matters that much. Assuming, that is, that (eqwin) is cheap to run. Wojtek On Thu, Apr 9, 2020 at 1:21 PM Мансур Мамкин wrote: > H

Re: Vip screen resize

2020-04-09 Thread Wojciech Gac
Thanks Alex! This is very elegant and concise. And it works. One other problem I noticed with my Vip (this is under Termux) is that for some reason it won't allow me to exit insert mode. It worked fine yesterday and I have no idea what changed. Initially I thought it might be some escaping issue,

Re: Vip screen resize

2020-04-09 Thread Мансур Мамкин
Hi all, what about also comparing new values with current values, and do something only when anything has changed. Best regards, Mansur Mamkin On Wed, Apr 8, 2020 at 10:08 PM Wojciech Gac wrote: > Hi, > > I typically use my Vip/Picolisp setup inside Tmux. I've noticed that when > I resize the w

Re: Vip screen resize

2020-04-08 Thread Alexander Burger
Hi Wojtek, > I typically use my Vip/Picolisp setup inside Tmux. I've noticed that when I Me too. I never have any shell session running without Tmux, neither locally nor remote. > resize the window occupied by Vip, it does not automatically adapt to the > new dimensions, nor could I find a quic

Vip screen resize

2020-04-08 Thread Wojciech Gac
Hi, I typically use my Vip/Picolisp setup inside Tmux. I've noticed that when I resize the window occupied by Vip, it does not automatically adapt to the new dimensions, nor could I find a quick way to do it manually. So I took a look at the source code and decided to write some helper functions.