Re: Use contents of register in search?

2015-02-11 Thread Gary Johnson
On 2015-02-11, Tim Chase wrote: > On 2015-02-11 21:38, Ethan Hereth wrote: > > > - control+F (":help c_CTRL-F") allows you to use the power of > > > vim to edit the vim command-line (and your previous search > > > histories). > > > > Tim!! I have been using vim for years now and I frequently use

Re: Use contents of register in search?

2015-02-11 Thread Tim Chase
On 2015-02-11 21:38, Ethan Hereth wrote: > > - control+F (":help c_CTRL-F") allows you to use the power of > > vim to edit the vim command-line (and your previous search > > histories). > > Tim!! I have been using vim for years now and I frequently use the > q{:,/,?} commands. I did not know abou

Re: Use contents of register in search?

2015-02-11 Thread Ethan Hereth
On Wed, Feb 11, 2015 at 7:50 PM, Tim Chase wrote: > On 2015-02-11 16:01, Brian L. Matthews wrote: > > Sweet! That's exactly what I'm looking for. I didn't know about > > ctrl-R, that seems like it will be generally useful. > > It also works in Insert/Replace mode as well, so you can dump the > co

Re: Who maintains cobol.vim?

2015-02-11 Thread John Little
On Wednesday, February 11, 2015 at 8:33:40 AM UTC+13, wexfordpress wrote: > Believe it or not it was the omission of the word > IF from the list of reserved words. >From a distant memory, there is a reason for that. I'm sorry, your first post >did not trigger the memory, but I've just diffed my

Re: Use contents of register in search?

2015-02-11 Thread Tim Chase
On 2015-02-11 16:01, Brian L. Matthews wrote: > Sweet! That's exactly what I'm looking for. I didn't know about > ctrl-R, that seems like it will be generally useful. It also works in Insert/Replace mode as well, so you can dump the contents of *any* register (not just the letter-named registers,

Re: Use contents of register in search?

2015-02-11 Thread Salman Halim
On Feb 11, 2015 7:01 PM, "Brian L. Matthews" wrote: > > On 2/11/15 1:36 PM, Tim Chase wrote: >> >> On 2015-02-11 13:24, Brian L. Matthews wrote: >>> >>> This is probably one of those "You use vim and don't know how to do >>> that?!?!" things, but I'd like to be able use the contents of a >>> regis

Re: Use contents of register in search?

2015-02-11 Thread Brian L. Matthews
On 2/11/15 1:36 PM, Tim Chase wrote: On 2015-02-11 13:24, Brian L. Matthews wrote: This is probably one of those "You use vim and don't know how to do that?!?!" things, but I'd like to be able use the contents of a register in a search. I often have some text and want to find out where else that

Re: Use contents of register in search?

2015-02-11 Thread Tim Chase
On 2015-02-11 13:24, Brian L. Matthews wrote: > This is probably one of those "You use vim and don't know how to do > that?!?!" things, but I'd like to be able use the contents of a > register in a search. I often have some text and want to find out > where else that text occurs. I can get the tex

Use contents of register in search?

2015-02-11 Thread Brian L. Matthews
This is probably one of those "You use vim and don't know how to do that?!?!" things, but I'd like to be able use the contents of a register in a search. I often have some text and want to find out where else that text occurs. I can get the text into a register, but then would like to search fo

Re: obtain current visual selection

2015-02-11 Thread Enno
Le mardi 10 février 2015 09:22:35 UTC+1, Enno a écrit : > Hello, > > There is a thread on StackOverflow labelled > > "How to get visually selected text in VimScript" > > The naive and stable approach would be > > let old_reg = @v > normal! gv"vy > let raw_search = @v > let @v = old_reg

Re: Can someone recommend a plugin to fold python long dict spanning over many lines?

2015-02-11 Thread Nikolay Pavlov
2015-02-11 19:02 GMT+03:00 Ben Fritz : > On Wednesday, February 11, 2015 at 12:52:12 AM UTC-6, Bao Niu wrote: > > No, sorry for this abrupt assertion but indentation is no good in this > case. That's why there are many plugins based on expr. Folding is simply > too rigid for this job. > > > > I ju

Re: Trying to tabline in GUI: not working && fontchange broken

2015-02-11 Thread Linda W
Jacky Liu wrote: On Monday, February 9, 2015 at 10:36:21 AM UTC+8, Jacky Liu wrote: you can make vim use the terminal style tabline though, by doing 'set guioptions-=e', but the 'TabLine...' hi groups still have no effect, at least not on my computer. They were meant for console vim, not gvim,

Re: vimscripting problem w/tabs and expanding width w/numbering option

2015-02-11 Thread Linda W
Ben Fritz wrote: On Sunday, February 8, 2015 at 5:59:28 PM UTC-6, L. A. Walsh wrote: It sorta looks like both tabs are being brought up at the same time and a race condition might be happening, but the fact that it is very deterministic, leads me to believe something else is going on.

Re: obtain current visual selection

2015-02-11 Thread Ben Fritz
On Wednesday, February 11, 2015 at 11:58:24 AM UTC-6, Enno wrote: > > Actually, the problem has nothing to do with the 'secure' option. Setting > > nosecure gives the same result, if I correct your mapping: > > > > xnoremap * "\/".GetVis()."\" > > > > The problem is not 'secure' but rather the

Re: obtain current visual selection

2015-02-11 Thread Enno
Le mercredi 11 février 2015 17:13:12 UTC+1, Ben Fritz a écrit : > On Wednesday, February 11, 2015 at 3:26:14 AM UTC-6, Enno wrote: > > Le mardi 10 février 2015 09:22:35 UTC+1, Enno a écrit : > > > Hello, > > > > > > There is a thread on StackOverflow labelled > > > > > > "How to get visually sele

Re: Locating the cursor

2015-02-11 Thread Ben Fritz
On Monday, February 9, 2015 at 10:15:43 PM UTC-6, Paul wrote: > > I don't suppose that some kind vim-script savvy soul could suggest how > one might other windows from flashing, i.e., have only the window with > the focus flash? You're relying on cursorline and cursorcolumn to "flash" the locatio

Re: obtain current visual selection

2015-02-11 Thread Ben Fritz
On Wednesday, February 11, 2015 at 3:26:14 AM UTC-6, Enno wrote: > Le mardi 10 février 2015 09:22:35 UTC+1, Enno a écrit : > > Hello, > > > > There is a thread on StackOverflow labelled > > > > "How to get visually selected text in VimScript" > > > > The naive and stable approach would be > > >

Re: Can someone recommend a plugin to fold python long dict spanning over many lines?

2015-02-11 Thread Ben Fritz
On Wednesday, February 11, 2015 at 12:52:12 AM UTC-6, Bao Niu wrote: > No, sorry for this abrupt assertion but indentation is no good in this case. > That's why there are many plugins based on expr. Folding is simply too rigid > for this job. > > I just want to write a wrapper function to fold t

Re: Locating the cursor

2015-02-11 Thread Paul
John Little gmail.com> writes: > On Wednesday, February 11, 2015 at 4:48:12 AM UTC+13, Paul wrote: >> I'm using Cygwin's X-windows. > > Seems like you have an insufficiently visible cursor. In gvim I use > > set guicursor=n-c:hor20,v:hor25,ve:ver35,o:hor50,i-ci:ver25, > \r-c

Re: obtain current visual selection

2015-02-11 Thread Enno
Le mardi 10 février 2015 09:22:35 UTC+1, Enno a écrit : > Hello, > > There is a thread on StackOverflow labelled > > "How to get visually selected text in VimScript" > > The naive and stable approach would be > > let old_reg = @v > normal! gv"vy > let raw_search = @v > let @v = old_reg

Re: obtain current visual selection

2015-02-11 Thread Enno
Le mardi 10 février 2015 09:22:35 UTC+1, Enno a écrit : > Hello, > > There is a thread on StackOverflow labelled > > "How to get visually selected text in VimScript" > > The naive and stable approach would be > > let old_reg = @v > normal! gv"vy > let raw_search = @v > let @v = old_reg