Unable to use "Edit with existing Vim" option on Windows to open another file

2017-08-03 Thread 'Mahendra Ladhe' via vim_use
Hi,    I have Vim 8.0 installed on my laptop which has Windows 10 Pro (64-bit OS). Suppose in gvim window test.c file is opened currently. Now when I try to open a file say vector.c in Windows explorer by right clicking on it and using "Edit with existing Vim - test.c" option, it simply does not

Re: foldexpr correct ?

2017-08-03 Thread Christian Brabandt
On Do, 03 Aug 2017, Stephan Sinz wrote: > I want to fold lines starting with similar ip addresses in a log file. > > ":set > foldexpr=getline(v:lnum)=~'^\\([0-9]\\+\\)\\.'&(v:lnum+1)=~'^\\1\\.'" > > doesn't work for folding similar ip adresses. what's wrong ? That doesn't work, because the

foldexpr correct ?

2017-08-03 Thread Stephan Sinz
I want to fold lines starting with similar ip addresses in a log file. ":set foldexpr=getline(v:lnum)=~'^\\([0-9]\\+\\)\\.'&(v:lnum+1)=~'^\\1\\.'" doesn't work for folding similar ip adresses. what's wrong ? -- -- You received this message from the "vim_use" maillist. Do not top-post! Type

Re: Changing Word with Yanked Word

2017-08-03 Thread Erik Christiansen
On 03.08.17 06:58, Michael Henry wrote: > I frequently use visual mode to select the word, then paste over > the selection from register 0. Usually I don't want the > behavior of ``dw`` because that removes trailing spaces and I > typically have yanked only the replacement word (without >

Re: Changing Word with Yanked Word

2017-08-03 Thread Michael Henry
On 08/03/2017 05:00 AM, Erik Christiansen wrote: > On 02.08.17 17:45, Parag Bhatt [C] wrote: >> I am looking for a quick way to change a word(cw?) with one >> that was yanked (yw). I do not want to enter insert mode, >> and would like to do it in command mode. > > With the cursor on the start of

Re: complete twp consecutive words

2017-08-03 Thread Erik Christiansen
On 02.08.17 21:16, Bee wrote: > Is it possible to complete 2 consecutive words? > That is match the first and include the second? That first becomes useful when repeated, so '.' is perhaps the quickest and easiest solution: Find the first word (or the pair), c2w, then hit 'n' for next match, and

Re: Changing Word with Yanked Word

2017-08-03 Thread Erik Christiansen
On 02.08.17 17:45, Parag Bhatt [C] wrote: > I am looking for a quick way to change a word(cw?) with one that was > yanked (yw). I do not want to enter insert mode, and would like to do > it in command mode. With the cursor on the start of the target word, dw"0P will do it. I admit that I had to

Re: Idea and prototype: Vim independent event based communication & completions?

2017-08-03 Thread Nikolay Aleksandrovich Pavlov
2017-08-03 0:23 GMT+03:00 Marc Weber : > Vim8 / NeoVim / maybe Emacs and more > languages: VimL/Python (maybe lua)/ others > > But common features such as > - completion > - templates > - describe thing at cursor > - goto thing at cursor > - show errors > - run