Re: How to autosave files when terminal is closed

2022-10-28 Thread Dennis Nezic
On Sat, 29 Oct 2022 00:03:17 +0100, Bram Moolenaar wrote: > > > On Fri, 28 Oct 2022 22:23:31 +0100, Bram Moolenaar wrote: > > > > > > > "au VimLeavePre * w" only works when I exit vim with something > > > > like ":q!" but not if I close my terminal window. > > > > > > > > Error detected while pr

Re: How to autosave files when terminal is closed

2022-10-28 Thread Bram Moolenaar
> On Fri, 28 Oct 2022 22:23:31 +0100, Bram Moolenaar wrote: > > > > > "au VimLeavePre * w" only works when I exit vim with something like > > > ":q!" but not if I close my terminal window. > > > > > > Error detected while processing VimLeavePre Autocommands for "*": > > > E749: Empty buffer > >

Re: Share variables between Two vim9 def functions

2022-10-28 Thread Nicolas
OK export Var and import from files that i know reduce variable consumption scope. Entiendo. Thank you a lot Bram, Courage. Nicolas Le vendredi 28 octobre 2022 à 23:44:16 UTC+2, Bram Moolenaar a écrit : > > > Vim9script introduces the fact of having to use a global to pass values > > ​​betwe

Re: Share variables between Two vim9 def functions

2022-10-28 Thread Bram Moolenaar
> Vim9script introduces the fact of having to use a global to pass values > ​​between a P function, producing its values, used for example in an > autocommand and a second C function consuming its data / values ​​which > would be called on a key mapping for example. The fact is that going >

Re: How to autosave files when terminal is closed

2022-10-28 Thread Dennis Nezic
On Fri, 28 Oct 2022 22:23:31 +0100, Bram Moolenaar wrote: > > > "au VimLeavePre * w" only works when I exit vim with something like > > ":q!" but not if I close my terminal window. > > > > Error detected while processing VimLeavePre Autocommands for "*": > > E749: Empty buffer > > > > VimLeave[P

Re: How to autosave files when terminal is closed

2022-10-28 Thread Bram Moolenaar
> "au VimLeavePre * w" only works when I exit vim with something like > ":q!" but not if I close my terminal window. > > Error detected while processing VimLeavePre Autocommands for "*": > E749: Empty buffer > > VimLeave[Pre] is being called, but the buffer is not saved, probably > because it's

Re: E117: Unknown function: plug#begin

2022-10-28 Thread Robert
It's not finding where you put it. I do the following: " installed at ~/.vim/autoload/plug.vim " All my plugins are installed into this path call plug#begin('~/.vim/plugged') HTH Bob On Wednesday, October 26, 2022 at 3:48:50 PM UTC-4 Rellot wrote: > this error occured when conifiguring vim pl