Re: Activating Windows gVim from the command line

2012-08-02 Thread Tony Mechelynck
On 02/08/12 16:30, Ben Fritz wrote: On Thursday, August 2, 2012 12:21:02 AM UTC-5, His Nerdship wrote: I have found a working solution: gvim -c "/haddock" +713 -c ":call search('haddock','c')" fish.cpp First do the '/' search, then go to the specified line, then do the ":call search" I'

Re: Activating Windows gVim from the command line

2012-08-02 Thread Ben Fritz
On Thursday, August 2, 2012 12:21:02 AM UTC-5, His Nerdship wrote: > > > I have found a working solution: > > gvim -c "/haddock" +713 -c ":call search('haddock','c')" fish.cpp > > > > First do the '/' search, then go to the specified line, then do the > > ":call search" I'm glad you got it

Re: Activating Windows gVim from the command line

2012-08-01 Thread His Nerdship
On Aug 2, 12:00 pm, His Nerdship wrote: > Thanks a million, Gary and sc. > Gary your solution didn't work in Windows - it has different quoting > rules to UNIX.  It's just a matter of experimentation and I will try > and bully it into submission later. > sc - your solution worked in that it corr

Re: Activating Windows gVim from the command line

2012-08-01 Thread His Nerdship
> > (I assume that the oddball quotation marks are due to your mailer's > editor.) > > The -c option specifies an ex command, not a normal-mode > command.  The ex search command finds the line matching the > patterns, not the column. > > What you want is something like this: > >     gvim +713 -c 'e

Re: Activating Windows gVim from the command line

2012-08-01 Thread Gary Johnson
On 2012-08-01, His Nerdship wrote: > So if I want to start up Vim so that it immediately takes > me to the word ‘haddock’ on line 713 of fish.cpp I would expect to > enter: > gvim +713 -c “/haddock” fish.cpp > However I find this takes me to (or near) line 713, and all instances > of ‘haddock’ are

Re: Activating Windows gVim from the command line

2012-08-01 Thread sc
On Wed, Aug 01, 2012 at 04:36:50PM -0700, His Nerdship wrote: > I left a query about 10 days ago which was kindly and competently > answered by Ben (Fritz). Vielen Dank, Ben. > I have another problem stemming from the same issue, namely that the > moronic managers (aren’t they all?) at my new job

Activating Windows gVim from the command line

2012-08-01 Thread His Nerdship
I left a query about 10 days ago which was kindly and competently answered by Ben (Fritz). Vielen Dank, Ben. I have another problem stemming from the same issue, namely that the moronic managers (aren’t they all?) at my new job have locked down our PC’s such that we cannot install anything properl