Re: how to fold lines not containing a pattern ?

2006-06-06 Thread Christian MICHON
excellent trick! (as usual) thanks a lot! On 6/5/06, Tim Chase <[EMAIL PROTECTED]> wrote: > and how do I do if I want it to be case insensitive ? > ie I want to detect "Warning" "WARNING" "warning" :help expr-=~? set foldmethod=expr foldexpr=getline(v:lnum)=~?'warning'?0:1 I also trie

RE: MatchParen unreadable on dark backgrounds

2006-06-06 Thread Zdenek Sekera
> From: Benjamin Esham [mailto:[EMAIL PROTECTED] > Sent: 03 June 2006 05:41 > To: Yakov Lerner > Cc: vim@vim.org > Subject: Re: MatchParen unreadable on dark backgrounds > > Yakov Lerner wrote: > > > Georg Dahn wrote: > > > >> This depends on the color scheme you are using. If the maintainer > >

Re: MatchParen unreadable on dark backgrounds

2006-06-06 Thread Pádraig Brady
Georg Dahn wrote: >> I use dark backgrounds (and therefore a light coloured foreground >> colour). >> As a consequence the new MatchParen highlight that is enabled >> by default in vim 7 is unreadable/annoying. >> I need to put the following in my ~/.vimrc to fix it: >> >> highlight MatchParen cter

Re: MatchParen unreadable on dark backgrounds

2006-06-06 Thread A.J.Mechelynck
Pádraig Brady wrote: Georg Dahn wrote: I use dark backgrounds (and therefore a light coloured foreground colour). As a consequence the new MatchParen highlight that is enabled by default in vim 7 is unreadable/annoying. I need to put the following in my ~/.vimrc to fix it: highlight MatchPar

Script dbext.vim no longer working with Vim 7.x?

2006-06-06 Thread Matthias Pitzl
Hello! I just installed the dbext.vim script as it's features really sound nice to me. Unfortunately i fail yet at the database connection dialogs. When running the :DBPromptForBufferParameters command i get following error messages: -- Please choose # of database type: 0. None 1. AS

Re: MatchParen unreadable on dark backgrounds

2006-06-06 Thread Benjamin Esham
Zdenek Sekera wrote: Benjamin Esham wrote: Biogoo (http://vim.sourceforge.net/scripts/script.php?script_id=432) defines these groups. It's quite a nice combination of colors, if I do say so myself ;-) Too bad that the "screen shot" in the above URL has invalid link problem. Fixed. Than

Re: Copying everything (not the complete line, only the matching pattern) which matches a pattern

2006-06-06 Thread Benji Fisher
Did you try using the Pippo() function from foo.vim , as I suggested in my previous post? http://www.vim.org/script.php?script_id=72 HTH --Benji Fisher On Thu, Jun 01, 2006 at 10:13:22AM +0530, SHANKAR R-R66203 wrote: > This is assuming that the each line

Re: E108: No such variable: "b:current_syntax" (I'm an idiot)

2006-06-06 Thread Benji Fisher
On Mon, Jun 05, 2006 at 08:31:41PM -0400, Thomas Schumm wrote: > On Monday 05 June 2006 08:01 pm, you wrote: > > So the question is: what have you been doing with > > $VIMRUNTIME/syntax/css.vim ? > > Nothing, unless my distro has been doing it behind my back. The only > modifications I've made t

RE: How do I get list of directory + how do I show them

2006-06-06 Thread Mueller Stefan
Hello, thank you for you help. But to be more precious I want to have a list of that directory like mylist[0] = file1.cpp,v mylist[1] = file2.cpp,v ... I want to feed that list to my own vim function, which displays the log, check out by,... Best Regards Stefan -Original Message- F

Re: How do I get list of directory + how do I show them

2006-06-06 Thread Bob Hiestand
On 6/6/06, Mueller Stefan <[EMAIL PROTECTED]> wrote: Hello, thank you for you help. But to be more precious I want to have a list of that directory like mylist[0] = file1.cpp,v mylist[1] = file2.cpp,v ... I want to feed that list to my own vim function, which displays the log, check out by,...

Problem with NetRW scp:// and nonstandard ssh port

2006-06-06 Thread Martin Hauser
Hello List, let's say i've got a ssh daemon and want to connect it using scp:// in vim, i just get an error message that the hostname does not exist if i do the following: :e scp://[EMAIL PROTECTED]:/home/mh/foobar.txt Any hints for me where syntax could be wrong? using vim 7.0 by the way.

RE: Script dbext.vim no longer working with Vim 7.x?

2006-06-06 Thread David Fishburn
> -Original Message- > From: Matthias Pitzl [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 06, 2006 8:37 AM > To: vim@vim.org > Subject: Script dbext.vim no longer working with Vim 7.x? > > Hello! > > I just installed the dbext.vim script as it's features really > sound nice to me.

Re: laststatus=2 anomaly (was: I sometimes have to "double strike" when using gvim7 over Hummingbird Exceed)

2006-06-06 Thread Mun Johl
Hi Eric, et al., Please see my comments below. On Fri, Jun 02, 2006 at 04:50 PM PDT, Eric Arnold wrote: EA> On 6/2/06, Mun Johl <[EMAIL PROTECTED]> wrote: ... Text Deleted ... EA> Sorry. I meant EA> EA> :call feedkeys( "/3\", "t") This executes fine. I can substitute any text for the "3" an

syntax match question

2006-06-06 Thread Robert Hicks
I would like to match all "options" that start with a hyphen like: -one -two -fish -blue -text -pad So all those would be a match from the "-" to the end of the word. :Robert

Re: syntax match question

2006-06-06 Thread Tim Chase
I would like to match all "options" that start with a hyphen like: -one -two So all those would be a match from the "-" to the end of the word. Looks like a simple /\<-\w\+\>/ It makes some presumptions where your description falls silent. What constitutes a "word" for you? The vim

Re: syntax match question

2006-06-06 Thread Robert Hicks
Tim Chase wrote: I would like to match all "options" that start with a hyphen like: -one -two So all those would be a match from the "-" to the end of the word. Looks like a simple /\<-\w\+\>/ It makes some presumptions where your description falls silent. What constitutes a "word" for

Re: syntax match question

2006-06-06 Thread Robert Hicks
Robert Hicks wrote: Tim Chase wrote: I would like to match all "options" that start with a hyphen like: -one -two So all those would be a match from the "-" to the end of the word. Looks like a simple /\<-\w\+\>/ It makes some presumptions where your description falls silent. What con

Re: regex question

2006-06-06 Thread Charles E Campbell Jr
Eric Arnold wrote: Real close. Turns out I think I want: /\<\%[directory]\{1,}\>/ I suspect you want /\/ but it doesn't seem to recognize \{1,} and without the \< it seems to be matching white space. The problem with \< is that it doesn't seem to allow \<\%[.directory] What I'm a

Re: regex question

2006-06-06 Thread Charles E Campbell Jr
Eric Arnold wrote: Real close. Turns out I think I want: /\<\%[directory]\{1,}\>/ I suspect you want /\/ Regards, Chip Campbell

Changing a long list of entries with corresponding index

2006-06-06 Thread Salman Mohsin
Hi, I have a long list of city names (more than 2,000 of them) in a file, each name on a separate line. I'd like to modify each line so that: ABERFOYLE . . ZURICH Becomes: cities[0] = "ABERFOYLE" . . cities[2039] = "ZURICH" Is there a way I could issue a command (or some commands) and achieve

Re: syntax match question

2006-06-06 Thread Charles E Campbell Jr
Robert Hicks wrote: A word can be anything really, so it would be from "-" to the end. So something like: syn match MyVarOption "\<-\w\+\>" Unless - is part of normal keyword characters (see :he 'iskeyword'), the \<- isn't going to help. Probably you want syn match MyVarOption "\%(\s\|^\

Re: Changing a long list of entries with corresponding index

2006-06-06 Thread Gary Johnson
On 2006-06-06, Salman Mohsin <[EMAIL PROTECTED]> wrote: > Hi, > > I have a long list of city names (more than 2,000 of them) in a file, each > name on a separate line. I'd like to modify each line so that: > > ABERFOYLE > . > . > ZURICH > > Becomes: > > cities[0] = "ABERFOYLE" > . > . > cities[

Re: Changing a long list of entries with corresponding index

2006-06-06 Thread Gerald Lai
On Tue, 6 Jun 2006, Gary Johnson wrote: On 2006-06-06, Salman Mohsin <[EMAIL PROTECTED]> wrote: Hi, I have a long list of city names (more than 2,000 of them) in a file, each name on a separate line. I'd like to modify each line so that: ABERFOYLE . . ZURICH Becomes: cities[0] = "ABERFOYLE"

Re: Changing a long list of entries with corresponding index

2006-06-06 Thread Charles E Campbell Jr
Salman Mohsin wrote: I have a long list of city names (more than 2,000 of them) in a file, each name on a separate line. I'd like to modify each line so that: ABERFOYLE . . ZURICH Becomes: cities[0] = "ABERFOYLE" . . cities[2039] = "ZURICH" Is there a way I could issue a command (or some com

Re: Problem with NetRW scp:// and nonstandard ssh port

2006-06-06 Thread Yakov Lerner
On 6/6/06, Martin Hauser <[EMAIL PROTECTED]> wrote: Hello List, let's say i've got a ssh daemon and want to connect it using scp:// in vim, i just get an error message that the hostname does not exist if i do the following: :e scp://[EMAIL PROTECTED]:/home/mh/foobar.txt The right syntax s

Tab complete filenames

2006-06-06 Thread Max Dyckhoff
I am wondering if there is any way to get the tab completion of a command to open a new file to complete any file in the path, not just those in the current working directory. Basically, my path variable is: path=.,c:\...\source,c:\...\source** and I would like to be able to enter :sf behavior_f

Re: Changing a long list of entries with corresponding index

2006-06-06 Thread Gerald Lai
On Tue, 6 Jun 2006, Charles E Campbell Jr wrote: Salman Mohsin wrote: I have a long list of city names (more than 2,000 of them) in a file, each name on a separate line. I'd like to modify each line so that: ABERFOYLE . . ZURICH Becomes: cities[0] = "ABERFOYLE" . . cities[2039] = "ZURICH"

Re: syntax match question

2006-06-06 Thread Robert Hicks
Charles E Campbell Jr wrote: Robert Hicks wrote: A word can be anything really, so it would be from "-" to the end. So something like: syn match MyVarOption "\<-\w\+\>" Unless - is part of normal keyword characters (see :he 'iskeyword'), the \<- isn't going to help. Probably you want sy

Re: Tab complete filenames

2006-06-06 Thread Gerald Lai
On Tue, 6 Jun 2006, Max Dyckhoff wrote: I am wondering if there is any way to get the tab completion of a command to open a new file to complete any file in the path, not just those in the current working directory. Basically, my path variable is: path=.,c:\...\source,c:\...\source** and I wou

RE: Tab complete filenames

2006-06-06 Thread Max Dyckhoff
Thanks Gerald. I'm not familiar with globpath although a quick :help taught me all I needed to know. A quick poke shows that it works rather nicely; if a bit slowly, we have around 100 first level directories in source, each of which has 20-100 files and sub directories (although thankfully not man

what is wrong with this autoload var usage?

2006-06-06 Thread Hari Krishna Dara
I am trying to use the new vim7 "object-based" features and am stuck with an issue in using autoload style variables. Save the below as t.vim in your autoload directory and execute it (:runtime autoload/t.vim). let t#var = 'something' let s:hash = {} function! s:hash.func() echomsg 'from

RE: laststatus=2 anomaly (was: I sometimes have to "double strike" when using gvim7 over Hummingbird Exceed)

2006-06-06 Thread Gene Kwiecinski
>After taking a couple of helpful hints from Eric, and doing a bunch of >experiments, I have isolated some odd behavior to 'laststatus'. >As a reminder, this issue only shows up when I compile vim7 using GTK-1; >it does not occur when I compile with Motif or GTK-2. My system is a >Sun workstation

Re: :ha printouts - fontsize

2006-06-06 Thread cga2000
On Mon, Jun 05, 2006 at 03:11:08AM EDT, A.J.Mechelynck wrote: > cga2000 wrote: [..] > > Well, here I am a "comparatively new" user of SuSE Linux, and I found it > remarkably easy to compile Vim 7 on it. If you decide you want to try > your hand at it, I was contemplating switching to gentoo a

Re: syntax match question

2006-06-06 Thread Robert Hicks
Charles E Campbell Jr wrote: Robert Hicks wrote: A word can be anything really, so it would be from "-" to the end. So something like: syn match MyVarOption "\<-\w\+\>" Unless - is part of normal keyword characters (see :he 'iskeyword'), the \<- isn't going to help. Probably you want sy

Re: Upgrading to Vim 7.0 in Debian (was Re: :ha printouts - fontsize)

2006-06-06 Thread cga2000
On Mon, Jun 05, 2006 at 05:22:44PM EDT, Marvin Renich wrote: > * A.J.Mechelynck <[EMAIL PROTECTED]> [060605 03:04]: > > cga2000 wrote: [..] > > Compiling is not hard, but there are already Debian packages with Vim > 7.0, so you can simply install them (they may not be quite as up-to-date > as the

Re: how to fold lines not containing a pattern ?

2006-06-06 Thread Linsong
Christian MICHON wrote: Hi vimmers, I would like to fold all lines not containing a keyword like 'warning'. Basically, I want to be able to open a file, apply this filter and immediately see all warnings related in my file. Is there a one-liner way to do this? or must I do a specific syntax fo

Re: syntax match question

2006-06-06 Thread Peter Hodge
Hi, So you want something like: " highlight all var options using this match syntax match allVarOptions "\%(\s\|^\)\zs-\w\+" " highlight the keywords within allVarOptions: " note: because '-' is an iskeyword character, you have to " use a match instead. syntax match allVarOptionKeywo

RE: Tab complete filenames

2006-06-06 Thread Gerald Lai
On Tue, 6 Jun 2006, Max Dyckhoff wrote: -Original Message- From: Gerald Lai [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 2:40 PM To: Max Dyckhoff Cc: vim org Subject: Re: Tab complete filenames On Tue, 6 Jun 2006, Max Dyckhoff wrote: I am wondering if there is any way to get

Re: laststatus=2 anomaly (was: I sometimes have to "double strike" when using gvim7 over Hummingbird Exceed)

2006-06-06 Thread Mun Johl
Hi Gene, et al., Please see my comments below. On Tue, Jun 06, 2006 at 03:49 PM PDT, Gene Kwiecinski wrote: ... Text Deleted ... GK> >Here's a sample of what I get when I type each letter in the English GK> >alphabet twice in a row (e.g.: aabbccddeeff...): GK> GK> >abbcdeffgghijjkklmmnopqqrßtu

:X option

2006-06-06 Thread Leandro Melo de Sales
Hi all, I have a important file that I set a encrypt key last year... But I forgot the key, but I need to read the file... any way to do that? I'm using vim 6.4 Thank you, Leandro

Re: what is wrong with this autoload var usage?

2006-06-06 Thread Jürgen Krämer
Hi, Hari Krishna Dara wrote: > > I am trying to use the new vim7 "object-based" features and am stuck > with an issue in using autoload style variables. Save the below as t.vim > in your autoload directory and execute it (:runtime autoload/t.vim). > > let t#var = 'something' > > let s:hash = {}