Re: Will vim copy all file content to memory when i open a file?

2018-02-14 Thread Christian Brabandt
On Do, 15 Feb 2018, Tony Mechelynck wrote: > On Tue, Feb 13, 2018 at 9:49 PM, Lifepillar wrote: > [...] > > In my system (macOS and Vim 8.0.1500), if I run `vim --clean` > > repeatedly, both maxmem and maxmemtot are set to the same huge value, which > > changes at

Re: current milestone in Vim development (Bram has commited +- daily)

2018-02-14 Thread Christian Brabandt
On Do, 15 Feb 2018, Renato Fabbri wrote: > I am asking about milestones, if any are publicly stated or recognized. There are no public milestones. You can have a look in the todo list to see what Bram is working on. Basically mainly bug fixes and every now and then a new feature is

Re: current milestone in Vim development (Bram has commited +- daily)

2018-02-14 Thread Renato Fabbri
yes, here my files are edited in a Vim compiled in a python2+3 nogui termguicolors (:version output is below) I am asking about milestones, if any are publicly stated or recognized. ~ 7.X - 8 versions were preceded by many daily commits. (as shown by Bram in the 25 years of Vim video) tx++

Re: current milestone in Vim development (Bram has commited +- daily)

2018-02-14 Thread Tony Mechelynck
On Thu, Feb 15, 2018 at 5:00 AM, Renato Fabbri wrote: > in Bram's 2016 screencast (video) about 25 years of Vim, > he shows commit stats in which large periods of > daily commits precedes relevant Vim releases. > > Anyone know current milestone(s)? > > cheers, > R. I

current milestone in Vim development (Bram has commited +- daily)

2018-02-14 Thread Renato Fabbri
in Bram's 2016 screencast (video) about 25 years of Vim, he shows commit stats in which large periods of daily commits precedes relevant Vim releases. Anyone know current milestone(s)? cheers, R. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply

Re: Will vim copy all file content to memory when i open a file?

2018-02-14 Thread Tony Mechelynck
On Thu, Feb 15, 2018 at 12:28 AM, Tony Mechelynck wrote: > On Tue, Feb 13, 2018 at 9:49 PM, Lifepillar wrote: > [...] >> In my system (macOS and Vim 8.0.1500), if I run `vim --clean` >> repeatedly, both maxmem and maxmemtot are set to the

Re: Will vim copy all file content to memory when i open a file?

2018-02-14 Thread Tony Mechelynck
On Tue, Feb 13, 2018 at 9:49 PM, Lifepillar wrote: [...] > In my system (macOS and Vim 8.0.1500), if I run `vim --clean` > repeatedly, both maxmem and maxmemtot are set to the same huge value, which > changes at every run, such as 9007199253926612 or > 9007199253919906.

Sub-menu lists?

2018-02-14 Thread Guido Milanese
I am sure that this question has been asked other times, bu I could not find answer. I am writing a menu for an application and I would like to obtain a sub-menu-list, something like in the main menu: "Edit --> Colour scheme"or "Tools -> Spelling". Where can I find the documentation? Thank you

Re: Replace v:val by v:key in a list if patter matches

2018-02-14 Thread Ni Va
Le mercredi 14 février 2018 11:53:11 UTC+1, tyru a écrit : > Hi Ni Va, > > You can choose what you like. > > let list = ['foo', 'bar'] > let pattern = 'oo' > > echo map(copy(list), 'v:val =~# pattern ? v:key : v:val') > " or > echo map(copy(list), 'v:val =~# '.string(pattern).' ? v:key :

Re: http://www.vim.org is down?

2018-02-14 Thread Bram Moolenaar
Takuya Fujiwara wrote: > When I access to http://www.vim.org , I was redirected to > https://sourceforge.net/error-404.html . > ("Page not found - SourceForge.net") > > But it seems https://vim.sourceforge.io/ is alive, though. Seems to be a sourceforge problem, their status page also doesn't

Re: http://www.vim.org is down?

2018-02-14 Thread Ben Oliver
On 18-02-14 21:21:15, tyru wrote: Hi list, When I access to http://www.vim.org , I was redirected to https://sourceforge.net/error-404.html . ("Page not found - SourceForge.net") But it seems https://vim.sourceforge.io/ is alive, though. -- Takuya Fujiwara Yep, same here. -- -- You

http://www.vim.org is down?

2018-02-14 Thread tyru
Hi list, When I access to http://www.vim.org , I was redirected to https://sourceforge.net/error-404.html . ("Page not found - SourceForge.net") But it seems https://vim.sourceforge.io/ is alive, though. -- Takuya Fujiwara -- -- You received this message from the "vim_use" maillist. Do not

Re: Replace v:val by v:key in a list if patter matches

2018-02-14 Thread tyru
Hi Ni Va, You can choose what you like. let list = ['foo', 'bar'] let pattern = 'oo' echo map(copy(list), 'v:val =~# pattern ? v:key : v:val') " or echo map(copy(list), 'v:val =~# '.string(pattern).' ? v:key : v:val') " or (Vim 8 or higher) echo map(copy(list), {i,v -> v =~# pattern ? i : v})

Re: substitue( optimize

2018-02-14 Thread Ni Va
Yes that's why I switch Choice One : VimL binary file parse to Choice 2 : Ruby Ox parser seems to have very good perf. currently workin on, I leave VimL func... Thank you for the first explanation of set List full ready to work some job. I agree 2018-02-14 9:57 GMT+01:00 Nikolay Aleksandrovich

Re: substitue( optimize

2018-02-14 Thread Nikolay Aleksandrovich Pavlov
2018-02-14 11:31 GMT+03:00 Ni Va : > Entirely agree with your VimL principle : less command is fast/better, inner > system apis... Principle that works for any Language. Not actually. What I mean here is that you should use VimL expressions where normally you would use

Re: substitue( optimize

2018-02-14 Thread Ni Va
Entirely agree with your VimL principle : less command is fast/better, inner system apis... Principle that works for any Language. Out the fact that it is not here a xml treenode parser but inlines binary file modifications, do you think modifying large xml file (1Million line 40Mo) can be as

Re: substitue( optimize

2018-02-14 Thread Nikolay Aleksandrovich Pavlov
2018-02-14 10:41 GMT+03:00 Ni Va : > Le mardi 13 février 2018 14:30:38 UTC+1, Luc Hermitte a écrit : >> Hello Nicholas, >> >> > After reading a file and getting 1 million lines' List, I need to >> > make similar substitutions over matched lines ~500 times with this >> > func: