Re: automatization with powershell Start-Process

2020-01-17 Thread skeept
On Friday, January 17, 2020 at 4:01:09 PM UTC-6, Erhy wrote: > > Hallo! > My task is, to convert many files encoding in latin1 to UTF-8 > > I know the sequence which works: > > open a file > set set fileencoding=utf-8 > set bomb > wrtite to another file > > but there are problems with the

automatization with powershell Start-Process

2020-01-17 Thread Erhy
Hallo! My task is, to convert many files encoding in latin1 to UTF-8 I know the sequence which works: open a file set set fileencoding=utf-8 set bomb wrtite to another file but there are problems with the argument list this fails: Start-Process -FilePath 'C:/Program Files

Re: set all - each option one line

2020-01-17 Thread Erhy
don't see the simple solution? please tell me Erhy Am Freitag, 17. Januar 2020 20:53:25 UTC+1 schrieb Andy Wokula: > > Am 17.01.2020 um 19:39 schrieb Bram Moolenaar: > > Andy Wokula wrote: > > > >> Am 15.01.2020 um 22:22 schrieb Erhy: > >>> Hello! > >>> I want to compare the options set in

Re: set all - each option one line

2020-01-17 Thread 'Andy Wokula' via vim_use
Am 17.01.2020 um 19:39 schrieb Bram Moolenaar: Andy Wokula wrote: Am 15.01.2020 um 22:22 schrieb Erhy: Hello! I want to compare the options set in VIM. Do you know, how to format of set all output that I have *for each option a separate line *? Thank you for tips Erhy Apparently

Re: How to know if a converted string to float is really a float number ?

2020-01-17 Thread Tony Mechelynck
On Fri, Jan 17, 2020 at 7:29 PM Ni Va wrote: > > HI, > > According to str2float help, I have tried this : > > '3,3e+004'->substitute(',', '.', 'g')->str2float() which return 33000 number. > > According to good conversion in this case it is a float num but if I replace > by cases where it is not

Re: set all - each option one line

2020-01-17 Thread Bram Moolenaar
Andy Wokula wrote: > Am 15.01.2020 um 22:22 schrieb Erhy: > > Hello! > > I want to compare the options set in VIM. > > > > Do you know, how to format of set all output > > that I have *for each option a separate line *? > > > > Thank you for tips > > Erhy > > Apparently > :set > always

How to know if a converted string to float is really a float number ?

2020-01-17 Thread Ni Va
HI, According to str2float help, I have tried this : '3,3e+004'->substitute(',', '.', 'g')->str2float() which return 33000 number. According to good conversion in this case it is a float num but if I replace by cases where it is not a well form of num that no have to be converted.

Re: What determines the very first file that Vim will load on startup?

2020-01-17 Thread Tony Mechelynck
On Fri, Jan 17, 2020 at 2:10 PM DwigtArmyOfChampions wrote: > > I am using Vim 7.4. I have a file /etc/vimrc, but when I vim a file and run > the :scriptnames command, the very first file loaded is ~/.vimrc. > > On another Linux machine I also have Vim 7.4 installed, and when run the vim >

Re: match string in part of List buffer starting at index

2020-01-17 Thread Ni Va
It's done. Thank you Le ven. 17 janv. 2020 à 16:34, 'Andy Wokula' via vim_use < vim_use@googlegroups.com> a écrit : > Am 17.01.2020 um 08:48 schrieb Ni Va: > > Hi, > > > > Would like to match a string onto a part of List starting to Nth index ? > > > > Thank you > > Check out match(),

Re: match string in part of List buffer starting at index

2020-01-17 Thread 'Andy Wokula' via vim_use
Am 17.01.2020 um 08:48 schrieb Ni Va: Hi, Would like to match a string onto a part of List starting to Nth index ? Thank you Check out match(), matchstr(), matchstrpos() etc with List argument for {expr} and {start} index. -- Andy -- -- You received this message from the "vim_use"

Re: What determines the very first file that Vim will load on startup?

2020-01-17 Thread 'Ottavio Caruso' via vim_use
On Fri, 17 Jan 2020 at 13:10, DwigtArmyOfChampions wrote: > > I am using Vim 7.4. I have a file /etc/vimrc, but when I vim a file and run > the :scriptnames command, the very first file loaded is ~/.vimrc. > > On another Linux machine I also have Vim 7.4 installed, and when run the vim >

Re: match string in part of List buffer starting at index

2020-01-17 Thread Shlomi Fish
On Fri, 17 Jan 2020 04:42:30 -0800 (PST) Ni Va wrote: > That sort of thing > match(s:buffer[startidx : ] > Try using https://learnvimscriptthehardway.stevelosh.com/chapters/27.html#joining or a loop or whatever. > Le vendredi 17 janvier 2020 09:40:36 UTC+1, Shlomi Fish a écrit : > > > > On

What determines the very first file that Vim will load on startup?

2020-01-17 Thread DwigtArmyOfChampions
I am using Vim 7.4. I have a file /etc/vimrc, but when I vim a file and run the :scriptnames command, the very first file loaded is ~/.vimrc. On another Linux machine I also have Vim 7.4 installed, and when run the vim command and then run :scriptnames, that loads /etc/vimrc. Where is this

Re: match string in part of List buffer starting at index

2020-01-17 Thread Ni Va
That sort of thing match(s:buffer[startidx : ] Le vendredi 17 janvier 2020 09:40:36 UTC+1, Shlomi Fish a écrit : > > On Thu, 16 Jan 2020 23:48:00 -0800 (PST) > Ni Va > wrote: > > > Hi, > > > > Would like to match a string onto a part of List starting to Nth index ? > > > > Thank you > > >

Re: match string in part of List buffer starting at index

2020-01-17 Thread Shlomi Fish
On Thu, 16 Jan 2020 23:48:00 -0800 (PST) Ni Va wrote: > Hi, > > Would like to match a string onto a part of List starting to Nth index ? > > Thank you > Hi, what do you mean? -- Shlomi Fish https://www.shlomifish.org/ Let’s talk about restores instead of backups -