Re: write to command0line prompt

2018-02-20 Thread Christian Brabandt
On Mi, 21 Feb 2018, Renato Fabbri wrote: > > > :'-| > > > may one assume that is is not possible to leave the cursor > in the command line with some text written if not through a mapping? :call feedkeys(':foobar', 'n') Best, Christian -- -- You received this message from the "vim_use" ma

Re: write to command0line prompt

2018-02-20 Thread Renato Fabbri
:'-| may one assume that is is not possible to leave the cursor in the command line with some text written if not through a mapping? Best, rf On Sun, Feb 18, 2018 at 7:08 PM, Renato Fabbri wrote: > Em domingo, 18 de fevereiro de 2018 18:09:10 UTC-3, Tim Chase escreveu: > > On 2018-02-18 13:0

Re: build dict key:val from map list and substitute

2018-02-20 Thread Nikolay Aleksandrovich Pavlov
2018-02-20 22:52 GMT+03:00 Ni Va : > Hi, > > map(copy(totaltimelist)[0:10], 'substitute(v:val, linepat, "\\1 : \\2", "")') > > Two values as backward ref are retrieved from a mapped list but I would like > to use : > - first value \\1 as dict.key > - second value \\2 is added to dict[key].values =

build dict key:val from map list and substitute

2018-02-20 Thread Ni Va
Hi, map(copy(totaltimelist)[0:10], 'substitute(v:val, linepat, "\\1 : \\2", "")') Two values as backward ref are retrieved from a mapped list but I would like to use : - first value \\1 as dict.key - second value \\2 is added to dict[key].values = [\\2,...,..] How doing this into first map( fu

Re: Moving away from SourceForge

2018-02-20 Thread Charles Sheridan
Currently at 09h50 CST from Safari on a mac, http://www.vim.org gets Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/home/project-web/vim/htdocs/index.php' (include_path='.:/usr/local/lib/php') in Unknown

Re: A syntax highlighting trivia: matching operators

2018-02-20 Thread Lifepillar
On 20/02/2018 16:10, Charles E Campbell wrote: Lifepillar wrote: Suppose that @, @@, and @@@ are three operators and that @ is not in iskeyword. Besides, the operators may not necessarily be surrounded by spaces or alphanumeric characters: for example, one may encounter @( at the begin of the li

Re: A syntax highlighting trivia: matching operators

2018-02-20 Thread Charles E Campbell
Lifepillar wrote: > Suppose that @, @@, and @@@ are three operators and that @ is not in > iskeyword. Besides, the operators may not necessarily be surrounded > by spaces or alphanumeric characters: for example, one may encounter > @( at the begin of the line (as in this line). > > How would you de

Re: pattern of func

2018-02-20 Thread Ni Va
Le mardi 20 février 2018 00:27:36 UTC+1, Arun E a écrit : > That is due to the "greedy" nature of ".*". Replace ".*" with ".\{-}". > > > Anycase, for a preview of what your pattern would match, you could  > surround your expression of interest within \zs and \ze like >    /^.*\zs\(\S\+()\)\ze >