***SPAM*** Re: Vim70's highlighting

2007-04-10 Thread panshizhu
李长青 [EMAIL PROTECTED] 写于 2007-04-10 10:14:07: hi,all: thank you. I install vim70 as a new software ,not update from other version. And there is not a file named vimrc_example.vim at the path /usr/share/vim/vim70,just a file named debian.vim.And when I install vim70

Re: ***SPAM*** Re: Re: ***SPAM***_Vim70's hignlighting

2007-04-10 Thread Zhaojun WU
Hi, Seems you are using Debian? Which package do you choose (I suppose you installed vim-tiny not vim)? If so, replace the vim-tiny with vim via apt-get or aptitude. Best, Zhaojun On 4/10/07, 李长青 [EMAIL PROTECTED] wrote: hi,all: thank you. I install vim70 as a

RE: Vim freezes system ?!

2007-04-10 Thread Zdenek Sekera
-Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: 07 April 2007 05:46 To: Yakov Lerner Cc: vim@vim.org; Meino Christian Cramer; Bram Moolenaar Subject: Re: Vim freezes system ?! Yakov Lerner wrote: On 4/6/07, Yakov Lerner [EMAIL PROTECTED] wrote: On

***SPAM*** Re: Vim70's hignlighting -- Has been solved! thanks all! :)

2007-04-10 Thread yhntgbty
Hi,all: Sorry to trouble you all to help me. I have install a complete Version of Vim7.0,and it has been solved. Thank you again. Happy vimming. yhntgbty - Original Message - From: Zhaojun WU [EMAIL PROTECTED] To: yhntgbty [EMAIL PROTECTED] Sent: Tuesday, April 10,

Re: Vim freezes system ?!

2007-04-10 Thread A.J.Mechelynck
Zdenek Sekera wrote: [...] Just to add more to the confusion, on my box (RedHat Enterprise Linux, 512Mb Ram) I have maxmapdepth=1000 maxmempattern=1000 maxmem=257676 maxmemtot=257676 Which tells me the last two can hardly be in kb and all over I don't understand what really they mean.

RE: Vim freezes system ?!

2007-04-10 Thread Zdenek Sekera
-Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: 10 April 2007 09:10 To: Zdenek Sekera Cc: Yakov Lerner; vim@vim.org; Meino Christian Cramer; Bram Moolenaar Subject: Re: Vim freezes system ?! Zdenek Sekera wrote: [...] Just to add more to the confusion,

Re: Vim freezes system ?!

2007-04-10 Thread A.J.Mechelynck
Zdenek Sekera wrote: -Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: 10 April 2007 09:10 To: Zdenek Sekera Cc: Yakov Lerner; vim@vim.org; Meino Christian Cramer; Bram Moolenaar Subject: Re: Vim freezes system ?! Zdenek Sekera wrote: [...] Just to add more to

Re: copy pasting HTML code into vim

2007-04-10 Thread Jürgen Krämer
Hi, A.J.Mechelynck wrote: Kamaraju S Kusumanchi wrote: Let's say I open up a webpage, select some text and paste it into vim. Then all I see in vim is the text I see on the browser. While this is OK most of the times, sometimes I wish there is a way to paste the actual HTML code

script boolean operators

2007-04-10 Thread Horvath Adam
Hi, I can not find (manual, list-archiv, google) how to use boolean operators (and, or) in script. I prefer this: if i500 and i1000 One working solution: normal G let numberofrows = line(.) normal gg let i = 1 while i=numberofrows if i500 if i1000 do something

Re: copy pasting HTML code into vim

2007-04-10 Thread Jürgen Krämer
Hi, me wrote: actually, the selected HTML code might be available from the clipboard. E.g., both Firefox and Internet Explorer put it there in multiple formats. The following are lists of the available formats after copying from FF and IE, respectively: 49161: DataObject 49422:

Re: script boolean operators

2007-04-10 Thread Jürgen Krämer
Hi, Horvath Adam wrote: I can not find (manual, list-archiv, google) how to use boolean operators (and, or) in script. I prefer this: if i500 and i1000 boolean and is written as and boolean or is written as ||. So your example becomes if i500 i1000. One working solution:

Re: script boolean operators

2007-04-10 Thread Horvath Adam
Thanks, it's really straightforward, but where is it in the manual? http://vimdoc.sourceforge.net/htmldoc/usr_41.html - here I can not find. while i=numberofrows if i500 i1000 do something

Re: script boolean operators

2007-04-10 Thread A.J.Mechelynck
Horvath Adam wrote: Hi, I can not find (manual, list-archiv, google) how to use boolean operators (and, or) in script. I prefer this: if i500 and i1000 if (i 500) (i 1000) The parentheses are not really necessary but I use them for clarity. see :help expression-syntax One

Re: script boolean operators

2007-04-10 Thread A.J.Mechelynck
Jürgen Krämer wrote: Hi, Horvath Adam wrote: I can not find (manual, list-archiv, google) how to use boolean operators (and, or) in script. I prefer this: if i500 and i1000 boolean and is written as and boolean or is written as ||. So your example becomes if i500 i1000. One working

Re: script boolean operators

2007-04-10 Thread A.J.Mechelynck
Horvath Adam wrote: Thanks, it's really straightforward, but where is it in the manual? http://vimdoc.sourceforge.net/htmldoc/usr_41.html - here I can not find. see the help topic in my post of a few minutes ago. Rather than searching vimdoc, man or google, in Vim your first resource should

Re: Vim freezes system ?!

2007-04-10 Thread Yakov Lerner
On 4/10/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Zdenek Sekera wrote: -Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: 10 April 2007 09:10 To: Zdenek Sekera Cc: Yakov Lerner; vim@vim.org; Meino Christian Cramer; Bram Moolenaar Subject: Re: Vim freezes

Basic question, CTRL+Wh on Gvim, Win XP

2007-04-10 Thread Samuel Wright
Hi All, On my gvim 7 running on Win Xp none of the following work to move to another window (I'm actually using the project plugin, but I don't think that's relevant).. CTRL-W Left *CTRL-W_Left* CTRL-W CTRL-H *CTRL-W_CTRL-H*

Re: Basic question, CTRL+Wh on Gvim, Win XP

2007-04-10 Thread Albie Janse van Rensburg
Samuel Wright wrote: Hi All, On my gvim 7 running on Win Xp none of the following work to move to another window (I'm actually using the project plugin, but I don't think that's relevant).. CTRL-W Left*CTRL-W_Left* CTRL-W CTRL-H*CTRL-W_CTRL-H* CTRL-W BS

Re: Basic question, CTRL+Wh on Gvim, Win XP

2007-04-10 Thread A.J.Mechelynck
Albie Janse van Rensburg wrote: Samuel Wright wrote: Hi All, On my gvim 7 running on Win Xp none of the following work to move to another window (I'm actually using the project plugin, but I don't think that's relevant).. CTRL-W Left*CTRL-W_Left* CTRL-W CTRL-H

Re: Basic question, CTRL+Wh on Gvim, Win XP

2007-04-10 Thread A.J.Mechelynck
Samuel Wright wrote: Guys, Thanks for the response! Albie, yes I was talking about split windows. not vim tabs or windows apps... Tony, thanks for reminding me of :map to check what a mapping does. Yes, it was mapped in an obscure corner of my vimrc, that will teach me to cut and paste

Re: Basic question, CTRL+Wh on Gvim, Win XP

2007-04-10 Thread Samuel Wright
On 10/04/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: In general, the safest keys to use for the {lhs} (left-hand side) of mappings are the F keys. Almost everything else already has a function in Vim. Among Worth knowing. Thanks. What about when using a leader such as , or / ? Hit any key to

use variable in substitute

2007-04-10 Thread Horvath Adam
Hi, One question again for me. Can I use variable in pattern of substitute() in script? let row = getline(j) 'trallala' let rownext = getline(j+1) 'bimbam' let row = substitute(row, ^\\\(.*\\\)$, \\1 rownext, g) 'trallala bimbam' Thanks, b. r. Aruna

Re: use variable in substitute

2007-04-10 Thread Yakov Lerner
On 4/10/07, Horvath Adam [EMAIL PROTECTED] wrote: Hi, One question again for me. Can I use variable in pattern of substitute() in script? let row = getline(j) 'trallala' let rownext = getline(j+1) 'bimbam' let row = substitute(row, ^\\\(.*\\\)$, \\1 rownext, g) let row = substitute(row,

CTRL+gf new tab position

2007-04-10 Thread Ralf Schmitt
Hi, I often use CTRL-gf to open the word under cursor in a new tab page. This opens a new tab for the file at tab pos 0. Is it possible to control at which position CTRL-gf opens the new tab? I tried it with an autocommand on event TabEnter but that also triggers when I change into a already

Re: use variable in substitute

2007-04-10 Thread Horvath Adam
Great! Thank you! let row = substitute(row, ^\\\(.*\\\)$, \\1 . rownext, g) Yakov

Re: use variable in substitute

2007-04-10 Thread Tim Chase
Can I use variable in pattern of substitute() in script? let row = getline(j) 'trallala' let rownext = getline(j+1) 'bimbam' let row = substitute(row, ^\\\(.*\\\)$, \\1 rownext, g) 'trallala bimbam' yes is the short answer, though you have to 1) concat it (if there's something to which it

Re: Basic question, CTRL+Wh on Gvim, Win XP

2007-04-10 Thread Tim Chase
In general, the safest keys to use for the {lhs} (left-hand side) of mappings are the F keys. Almost everything else already has a function in Vim. Among Worth knowing. Thanks. What about when using a leader such as , or / ? The comma does a reverse-search of the last thing you searched for

Re: Basic question, CTRL+Wh on Gvim, Win XP

2007-04-10 Thread Samuel Wright
On 10/04/07, Tim Chase [EMAIL PROTECTED] wrote: The comma does a reverse-search of the last thing you searched for using t/T/f/F which many folks don't use (so they use it for leader), but I use regularly. Yes, have seen , used as leader before. Will look at the other usage though, as it is

Fwd: Perl colour coding bug

2007-04-10 Thread Jon Combe
The following snippet of code, when saved with a .pl file extension breaks the colour coding in Vim #!/usr/bin/perl -w my $surname = ABC-DEF GHI; @split = split ( / |-|\/|\/ , $surname , -1 ); foreach ( @split ) { print $_\n; } The lines after the

Re: CTRL+gf new tab position

2007-04-10 Thread Dave Land
Ralf, I use shift-control-g to open the file under the cursor in a new tab, placing the new tab at the end of the tablist thusly: map silent C-S-G C-Wgf:tabm 999CR Oddly enough, this mapping also takes over plain old control-g, which is fine for me. When I'm editing JSP files that have lots

Re: Fwd: Perl colour coding bug

2007-04-10 Thread Charles E Campbell Jr
Jon Combe wrote: The following snippet of code, when saved with a .pl file extension breaks the colour coding in Vim #!/usr/bin/perl -w my $surname = ABC-DEF GHI; @split = split ( / |-|\/|\/ , $surname , -1 ); foreach ( @split ) { print $_\n; }

How to recognize a single line via regexs

2007-04-10 Thread Informationen
Hi, how can I identify a single line no longer than e.g. 60 characters preceded and followed by a blank line via regexs. This way I want to identify section headings. What I did was mark every blank line with %s/^$// and than chomp the CR %s/\n//g and if the text between the 's isn't longer

Re: How to recognize a single line via regexs

2007-04-10 Thread Charles E Campbell Jr
Informationen wrote: Hi, how can I identify a single line no longer than e.g. 60 characters preceded and followed by a blank line via regexs. This way I want to identify section headings. What I did was mark every blank line with %s/^$// and than chomp the CR %s/\n//g and if the text

Re: How to recognize a single line via regexs

2007-04-10 Thread Tim Chase
how can I identify a single line no longer than e.g. 60 characters preceded and followed by a blank line via regexs. This way I want to identify section headings. What I did was mark every blank line with %s/^$// and than chomp the CR %s/\n//g and if the text between the 's isn't longer than 60

Re: copy pasting HTML code into vim

2007-04-10 Thread fREW
On 4/10/07, Jürgen Krämer [EMAIL PROTECTED] wrote: Hi, me wrote: actually, the selected HTML code might be available from the clipboard. E.g., both Firefox and Internet Explorer put it there in multiple formats. The following are lists of the available formats after copying from FF and

Re: Help on search and replace

2007-04-10 Thread Charles E Campbell Jr
Dudley Fox wrote: Hello Vim List, I have used vim for a while, and though no expert I am fairly comfortable with the common commands. Recently I ran into a situation where I just couldn't find a way to do a search and replace. I was hoping some of you experts could help me out. Starting text:

remote-silent and stdin

2007-04-10 Thread Mahesh Sivasubramanian
I am trying to do something to the effect of ls | gvim - --remote-client. or ls | gvim --remote-client - However, vi sees the - as a file name and opens a new filename. Is there way to open the stdin output on a gvim server? Thanks Mahesh

Using variables in syntax definitions

2007-04-10 Thread Ian Tegebo
Is doesn't seem possible to store my patterns in variables for use in syntax definitions like the following: let s:mypattern = '#.*' syn match myPattern s:mypattern I get 'pattern delimiter not found' and what not. Is there a way to achieve this? The general problem I'm trying to solve is

Re: Using variables in syntax definitions

2007-04-10 Thread Peter Hodge
Hello, You'll probably need to use 'execute': execute 'syn match myPattern' s:mypattern but again, highlighting won't work for you then. regards, Peter --- Ian Tegebo [EMAIL PROTECTED] wrote: Is doesn't seem possible to store my patterns in variables for use in syntax definitions

Re: how to replace ESC to some other key?

2007-04-10 Thread wangxu
That's a very good tip: ) I also wanna know how to insert a Tab when I editing files like /etc/hosts? Can I? [EMAIL PROTECTED] wrote: wangxu [EMAIL PROTECTED] 写于 2007-04-05 21:08:43: but in this situation,is there any way to auto-indent *.py? is decrease indent (hold on Shift,

Re: how to replace ESC to some other key?

2007-04-10 Thread Zhaojun WU
On 4/11/07, wangxu [EMAIL PROTECTED] wrote: That's a very good tip: ) I also wanna know how to insert a Tab when I editing files like /etc/hosts? Can I? What I did for indenting is I usually use space to replace the TAB with the following settings: set expandtab set tabstop=4 But if I indeed

Re: Using variables in syntax definitions

2007-04-10 Thread Ian Tegebo
On 4/10/07, Peter Hodge [EMAIL PROTECTED] wrote: Hello, You'll probably need to use 'execute': execute 'syn match myPattern' s:mypattern but again, highlighting won't work for you then. I see what you're talking about in the syntax files like rst, c, sql, and gdb. I wonder how hard it

Re: syntax/man.vim: manSubHeading is a bit too general?

2007-04-10 Thread Charles E Campbell Jr
Ian Tegebo wrote: On 4/9/07, Nikolai Weibull [EMAIL PROTECTED] wrote: The manSubHeading is defined as syn match manSubHeading ^\s\{3\}[a-z][a-z ]*[a-z]$ This will, however, match more lines than I think is intended. It will, for example, match the line \t returns are what are

Re: syntax/man.vim: manSubHeading is a bit too general?

2007-04-10 Thread Charles E Campbell Jr
Nikolai Weibull wrote: On 4/9/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: In this case, by looking at syntax/man.vim, its: Gautam H. Mudunuri gmudunur AT informatica.com. Actually, this was actually the wrong maintainer. Gautam was the previous maintainer of this file. Nam

Re: syntax/man.vim: manSubHeading is a bit too general?

2007-04-10 Thread Nikolai Weibull
On 4/10/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: On 4/9/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: In this case, by looking at syntax/man.vim, its: Gautam H. Mudunuri gmudunur AT informatica.com. Actually, this was actually the wrong maintainer.