Help build search pattern

2008-10-10 Thread Dmitry Teslenko
Hello! Does vim support multiline patterns with pockets? If it does, then what pattern would match this: { Type * variantName = ; variantName->someMethod(); } i.e. search all places where variable of type "Type" was used, "someMethod" was called and variant name may vary. --

Re: Saving the Quickfix List

2008-10-10 Thread A. S. Budden
Dear all, Many thanks for all the replies, they all look really good. I think I'll go with Peter Odding's approach as I like the way that it doesn't require any changes to 'efm', but I think that's just personal preference. Thanks again everyone! Al --~--~-~--~~~--

Re: Vim Tips wiki celebrates with a CSV tip

2008-10-10 Thread Christian Brabandt
Hi John! On Thu, 09 Oct 2008, John Beckett wrote: > > Can anyone point out the bug in the code below? (This encapsulates > the sorting > problem of the CSV tip reported by nh_wzg). > > Steps: > - Copy below to a file, say test.txt. > - Yank the second para (copy the code). > - Type :@" and pr

RE: Vim Tips wiki celebrates with a CSV tip

2008-10-10 Thread nh_wzg
John Beckett-2 wrote: > > John Beckett-2 wrote: > >> Please see the updated code: > >> http://vim.wikia.com/wiki/Working_with_CSV_files > >> Please give it a try and report any problems! > > Hi John: With the example below: ===Begin=== num,md51,fullpath_filename,fullname2, 5.988,44029A87

Re: Problem building vim for multiple platforms

2008-10-10 Thread James Kanze
On Oct 9, 12:21 am, Tony Mechelynck <[EMAIL PROTECTED]> wrote: > On 08/10/08 17:22, James Kanze wrote: > > I've just downloaded the sources for vim (under Unix), and > > am having a problem with the build procedure. According to > > src/INSTALL, in order to build for multiple architectures, I > >

Re: A number generator in built in vi

2008-10-10 Thread Andy Wokula
[EMAIL PROTECTED] schrieb: > Does vi has some quick way to generate lets say 1-100 > in 100 lines In Vim7 you'd say for example :put = range(1,100) but in Vi ... are you sure you're using Vi and not Vim? :ver -- Andy --~--~-~--~~~---~--~~ You received t

RE: Vim Tips wiki celebrates with a CSV tip

2008-10-10 Thread John Beckett
nh_wzg wrote: > I have test it with commands below correctly: > :Sort " sort by the current column > :Sort 3" sort by column 3 > :Sort! 3 " same, reverse order > :5,12Sort! 3 " same, but sort only lines 5 to 12 inclusive That's the good news - thanks. > I have test it wi

Re: A number generator in built in vi

2008-10-10 Thread Tim Chase
> I'm sure others will reply with functions etc to do this, but I tend to go > for: Of course...this is Vim so there regularly a multitude of ways to accomplish a goal :) > * Create a new file > * Enter '1' on the first line > * 'yy' (copy first line) > * '99p' (paste 99 times) > * Ctrl-V (vi

Stopping automatic outdent with colon in C comment

2008-10-10 Thread Michael Henry
All, When editing C files, I like the automatic re-indentation which occurs when I enter a label (an identifier followed by a colon). But inside of a C comment, I'd like to disable this behavior. I can't find anything relevant in the help. In my setup, I have cinkeys set to: 0{,0},0),:,0#,

A number generator in built in vi

2008-10-10 Thread [EMAIL PROTECTED]
Does vi has some quick way to generate lets say 1-100 in 100 lines --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: A number generator in built in vi

2008-10-10 Thread Erik Falor
On Fri, Oct 10, 2008 at 07:42:05AM -0500, Tim Chase wrote: > > > I'm sure others will reply with functions etc to do this, but I tend to go > > for: > > Of course...this is Vim so there regularly a multitude of ways to > accomplish a goal :) Indeed! > > > * Create a new file > > * Enter '1'

Re: A number generator in built in vi

2008-10-10 Thread A. S. Budden
2008/10/10 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Does vi has some quick way to generate lets say 1-100 > in 100 lines I'm sure others will reply with functions etc to do this, but I tend to go for: * Create a new file * Enter '1' on the first line * 'yy' (copy first line) * '99p' (paste 99 ti

Re: wrong links on the vim_dev page

2008-10-10 Thread Markus Heidelberg
John Beckett, 08.10.2008: > > etrillaud wrote: > > all the links on the following page : > > > > http://groups.google.com/group/vim_dev/web/vim-patches > > > > are wrong i.e. I am redirect to some porn site. > > Thanks. I've fixed it. You have fixed it two times and it is spammed again. I jus

Re: wrong links on the vim_dev page

2008-10-10 Thread Richard Hartmann
On Wed, Oct 8, 2008 at 23:50, John Beckett <[EMAIL PROTECTED]> wrote: > Bram is always right ... except when he's wrong, and this page should be on > the wiki > IMHO. The page on vim_dev should be fixed (only a manager can edit), and it > should > contain only a link to the page on the wiki. A

Re: A number generator in built in vi

2008-10-10 Thread toomln
Another approach: :call append(0, range(1, 100)) --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: A number generator in built in vi

2008-10-10 Thread Dave Land
Yet another approach: Insert a new line that contains the number 1. qq (start recording) yy (yank the line) p (put the yanked line) ^A (increment the number under the cursor) q (stop recording) You will now have a file with 2 lines in it: 1 and 2. Now the fun begins: [EMAIL PROTECTED] (repea

Re: wrong links on the vim_dev page

2008-10-10 Thread Charles Campbell
John Beckett wrote: > [snip] > It took the spammers three weeks to notice that we are open for business, but > now > someone has noticed, I expect we'll see this more regularly. Any member of > vim_dev > can fix future problems. Procedure: > > http://groups.google.com/group/vim_dev > - Under the

Re: Help build search pattern

2008-10-10 Thread fritzophrenic
On Oct 10, 2:08 am, "Dmitry Teslenko" <[EMAIL PROTECTED]> wrote: > Hello! > Does vim support multiline patterns with pockets? > If it does, then what pattern would match this: > > { >         Type * variantName = ; >         variantName->someMethod(); > > } > > i.e. search all places where v

bug on vim display when lines and columns are set

2008-10-10 Thread leandromartinez98
I'm using Ubuntu 8.04 and Vim 7.1.138. I've set in my ~/.vimrc file the following: set lines=48 columns=80 In order that Gvim opens with that display properties. This works fine. However, now, when I use "vim" from a Terminal (terminal emulator for the Gnome desktop, version 2.22.1), and open

Re: wrong links on the vim_dev page

2008-10-10 Thread fritzophrenic
On Oct 10, 1:46 pm, Charles Campbell <[EMAIL PROTECTED]> wrote: > John Beckett wrote: > > [snip] > > It took the spammers three weeks to notice that we are open for business, > > but now > > someone has noticed, I expect we'll see this more regularly. Any member of > > vim_dev > > can fix futu

netrw problem

2008-10-10 Thread Mr . SpOOn
Hi, I'm trying to use Vim to edit some html pages via ftp. I have Vim version 7.1.138 7.1 and I'm working on Ubuntu Linux. I installed the vimball package and then I gave the command: vim netrw.vim Then: :so % It worked fine, but if I try to access a remote address I get this error: Error det

Re: netrw problem

2008-10-10 Thread Erik Falor
On Fri, Oct 10, 2008 at 06:19:42PM +0200, Mr.SpOOn wrote: > > Hi, > I'm trying to use Vim to edit some html pages via ftp. > > I have Vim version 7.1.138 7.1 and I'm working on Ubuntu Linux. > I installed the vimball package and then I gave the command: > > vim netrw.vim > > Then: > :so % > >

RE: wrong links on the vim_dev page

2008-10-10 Thread John Beckett
Markus Heidelberg wrote: >> http://groups.google.com/group/vim_dev/web/vim-patches >> Thanks. I've fixed it. > > You have fixed it two times and it is spammed again. I just > wanted to correct it before finally adding my relativenumber > patch, but it didn't work, see below. Thanks for trying!

Re: A number generator in built in vi

2008-10-10 Thread Kevin Dillman
If you have macro capability: Insert 1 on the first line. qf to begin recording a macro in register f. yypto copy and past the same number on the line below. C-ato increment the second number. q to stop recording [EMAIL PROTECTED] to run the macro in register f 98 more times for

Re: netrw problem

2008-10-10 Thread Mr . SpOOn
On Sat, Oct 11, 2008 at 12:46 AM, Erik Falor <[EMAIL PROTECTED]> wrote: > Upgrade Vim. fnameescape() was added in version 7.1.299. > > If you don't have rights to upgrade software on the box running Vim, I > suppose that you could downgrade your netrw plugin The one I have now seems to be th

Re: wrong links on the vim_dev page

2008-10-10 Thread Markus Heidelberg
John Beckett, 11.10.2008: > > Re the reports that there was no "Make this version the current version" > link: I > don't have an explanation except that yes, you would have to be logged on > with a > Google account that is linked to the subscription in vim_dev. Evidence that > you were > logge

Re: bug on vim display when lines and columns are set

2008-10-10 Thread Tony Mechelynck
On 10/10/08 22:05, leandromartinez98 wrote: > > I'm using Ubuntu 8.04 and Vim 7.1.138. > > I've set in my ~/.vimrc file the following: > > set lines=48 columns=80 > > In order that Gvim opens with that display properties. This works > fine. > > However, now, when I use "vim" from a Terminal (termi

Re: netrw problem

2008-10-10 Thread Tony Mechelynck
On 11/10/08 01:03, Mr.SpOOn wrote: > On Sat, Oct 11, 2008 at 12:46 AM, Erik Falor<[EMAIL PROTECTED]> wrote: >> Upgrade Vim. fnameescape() was added in version 7.1.299. >> >> If you don't have rights to upgrade software on the box running Vim, I >> suppose that you could downgrade your netrw plug

RE: Vim Tips wiki celebrates with a CSV tip

2008-10-10 Thread John Beckett
The muse took me, and I have implemented sort for floating point fields in a CSV file. Please see the updated code: http://vim.wikia.com/wiki/Working_with_CSV_files OK, it's a bit long, but it's amazing code! Of course you need a version of Vim that supports floats. The :version command should