Re: :wn to :x like map/abbrev ?

2018-12-08 Thread 'Andy Wokula' via vim_use
Am 08.12.2018 um 14:16 schrieb M Kelly: Hi, Something like: :update|next perhaps? ok, cool. I didn't know about :update. (I could even maybe handle E163, E165 for the last one) take care, and thank you and everyone for vim, -m and check out :h 'autowrite -- Andy -- -- You

Re: :wn to :x like map/abbrev ?

2018-12-08 Thread M Kelly
Hi, > Something like: > :update|next > perhaps? ok, cool. I didn't know about :update. (I could even maybe handle E163, E165 for the last one) take care, and thank you and everyone for vim, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your

Re: :wn to :x like map/abbrev ?

2018-12-07 Thread Bram Moolenaar
> Thanks. I will look into that func, or something like it. > > > Making the one act like the other would confuse me. > > I think I'm really only asking for a :x to save and move on with out > prompting. Something like: :update|next perhaps? -- "Beware of bugs in the above code; I

Re: :wn to :x like map/abbrev ?

2018-12-06 Thread M Kelly
Hi, Thanks. I will look into that func, or something like it. > Making the one act like the other would confuse me. I think I'm really only asking for a :x to save and move on with out prompting. take care -m -- -- You received this message from the "vim_use" maillist. Do not top-post!

Re: :wn to :x like map/abbrev ?

2018-12-06 Thread Tony Mechelynck
On Thu, Dec 6, 2018 at 10:02 PM M Kelly wrote: > > Hi, > > When editting many files I can just do :wn to save and go to next, but > just curious, does anyone know of a mapping/abbrev so that :x acts like > :x for one file (and the last file), but acts like :wn for the files in > between ? Or

Re: :wn to :x like map/abbrev ?

2018-12-06 Thread John Passaro
Maybe you can define a function: function NextOrQuit() write if argidx() + 1 == argc() exit # same as :x else wnext endif endfunction then invoke it from a mapping or command of your choice, say :X or \x or ,x Not so flexible with the exclamation marks and