Re: Two """problems"""

2006-09-15 Thread Meino Christian Cramer
From: Pete Johns <[EMAIL PROTECTED]> Subject: Re: Two """problems""" Date: Fri, 15 Sep 2006 14:19:22 +1000 Hi Pete ! Thank you for "disassembling" the hex into mnemonics! :O) One question remains in my head: if /.\{73,}/ find all lines, for what is the "g" for? I mean...more than finding th

where can I change the Comment-Style?

2006-09-15 Thread Raphael Brunner
Dear users! I found, that Vim (7.0) jump on each comment in a program (python, perl, C, java, etc...) to the beginning of the line, if I insert a '#' on a inlined section. This Feature I don't want. Does anyone know where to disable this feature and why this is the standard on so many prg-language

Taglist and html vs php vs javascript

2006-09-15 Thread David Fishburn
Vim 7.0.106 When I edit an HTML file and open the taglist plugin it correctly checks for Javascript tags. When I edit a PHP file, the taglist plugin gets only the PHP tags, when most PHP pages would also have HTML and Javascript embedded within it. Does anyone know if this is a feature of ctags

RE: Taglist and html vs php vs javascript

2006-09-15 Thread David Fishburn
> -Original Message- > From: David Fishburn [mailto:[EMAIL PROTECTED] > Sent: Friday, September 15, 2006 9:56 AM > To: vim@vim.org > Subject: Taglist and html vs php vs javascript > > > Vim 7.0.106 > > When I edit an HTML file and open the taglist plugin it > correctly checks for Ja

Re: Two """problems"""

2006-09-15 Thread A.J.Mechelynck
Meino Christian Cramer wrote: From: Pete Johns <[EMAIL PROTECTED]> Subject: Re: Two """problems""" Date: Fri, 15 Sep 2006 14:19:22 +1000 Hi Pete ! Thank you for "disassembling" the hex into mnemonics! :O) One question remains in my head: if /.\{73,}/ find all lines, for what is the "g" for

Re: Two """problems"""

2006-09-15 Thread Meino Christian Cramer
From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: Two """problems""" Date: Fri, 15 Sep 2006 16:54:02 +0200 > Meino Christian Cramer wrote: > > From: Pete Johns <[EMAIL PROTECTED]> > > Subject: Re: Two """problems""" > > Date: Fri, 15 Sep 2006 14:19:22 +1000 > > > > Hi Pete ! > > > > Thank

multi-colour string matching?

2006-09-15 Thread Bill Weir
I greatly appreciate the hlsearch option (to highlight the result of a string search). What I would *really* like is the ability to search for several strings (ok, two would do), and have them highlighted in different colours (or even colors, for you Yanks out there). Eg I'd like to search fo

Re: vim | multiple files editing and delete question

2006-09-15 Thread A.J.Mechelynck
Nikolaos A. Patsopoulos wrote: Yakov Lerner wrote: On 9/14/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 9/14/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> Yakov Lerner wrote: >> > On 9/14/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> >>

Re: vim | multiple files editing and delete question

2006-09-15 Thread A.J.Mechelynck
Tim Chase wrote: To do an operation on multiple files in a WinXP DOS batch: for %%A in (*.txt) do [command] Just a small caveat to the reader, this works within a batch file by escaping the variable ("%A" in this case). If you're running it from the command-line, you don't escape it, and

Re: vim | replacement question

2006-09-15 Thread A.J.Mechelynck
Nikolaos A. Patsopoulos wrote: A.J.Mechelynck wrote: Nikolaos A. Patsopoulos wrote: Hi, another two questions: 1. I want to delete all text that has a specific pattern. I use the following code with s command but I want to keep the \a character in the beginning: :%s/\a,\_.\{-}<\/td><\/tr>/

Re: vim | replacement question

2006-09-15 Thread Nikolaos A. Patsopoulos
A.J.Mechelynck wrote: Nikolaos A. Patsopoulos wrote: A.J.Mechelynck wrote: Nikolaos A. Patsopoulos wrote: Hi, another two questions: 1. I want to delete all text that has a specific pattern. I use the following code with s command but I want to keep the \a character in the beginning: :%s/\

Re: vim | multiple files editing and delete question

2006-09-15 Thread Tim Chase
for %a in (*.txt) do [command using %a] instead of for %%a in (*.txt) do [command using %%a] Then again, maybe I'm among the freakish few that actually use for-loops at the dos-prompt. :) -tim I have used them too, starting (in my case) with Dos 3.1. Your warning is valid on old D

Re: vim | replacement question

2006-09-15 Thread A.J.Mechelynck
Nikolaos A. Patsopoulos wrote: A.J.Mechelynck wrote: Nikolaos A. Patsopoulos wrote: A.J.Mechelynck wrote: Nikolaos A. Patsopoulos wrote: Hi, another two questions: 1. I want to delete all text that has a specific pattern. I use the following code with s command but I want to keep the \a char

Re: multi-colour string matching?

2006-09-15 Thread A.J.Mechelynck
Bill Weir wrote: I greatly appreciate the hlsearch option (to highlight the result of a string search). What I would *really* like is the ability to search for several strings (ok, two would do), and have them highlighted in different colours (or even colors, for you Yanks out there). Eg I'd

Re: vim | replacement question

2006-09-15 Thread Tim Chase
To add an empty line at the end of the file Go or in a script normal Go^[ where ^[ is "hit Ctrl-V" "hit Esc" (replace Ctrl-V by Ctrl-Q if you use Ctrl-V to paste the clipboard) Additionally, in a script, you can use :$put ='' to add empty lines at the bottom of the

Re: vim | multiple files editing and delete question

2006-09-15 Thread A.J.Mechelynck
Tim Chase wrote: for %a in (*.txt) do [command using %a] instead of for %%a in (*.txt) do [command using %%a] Then again, maybe I'm among the freakish few that actually use for-loops at the dos-prompt. :) -tim I have used them too, starting (in my case) with Dos 3.1. Your warning

Re: Two """problems"""

2006-09-15 Thread Meino Christian Cramer
From: Pete Johns <[EMAIL PROTECTED]> Subject: Re: Two """problems""" Date: Fri, 15 Sep 2006 14:19:22 +1000 ... Hi Pete, ...please check this with your genious vimly mind... :) <<<-- BIG smiley! Your initial command set was: 1,$g/.\{73,}/normal v}gq Which does -- if I understand co

Re: Two """problems"""

2006-09-15 Thread A.J.Mechelynck
Meino Christian Cramer wrote: From: Pete Johns <[EMAIL PROTECTED]> Subject: Re: Two """problems""" Date: Fri, 15 Sep 2006 14:19:22 +1000 ... Hi Pete, ...please check this with your genious vimly mind... :) <<<-- BIG smiley! Your initial command set was: 1,$g/.\{73,}/normal v}gq

RE: multi-colour string matching?

2006-09-15 Thread Krall, Ed-P27726
Bill Weir wrote > > I greatly appreciate the hlsearch option (to highlight the > result of a string search). What I would *really* like is > the ability to search for several strings (ok, two would do), > and have them highlighted in different colours (or even > colors, for you Yanks out the

Strange behavior of d_

2006-09-15 Thread Stefan Karlsson
I was expectig the normal mode command d_ (without count) to delete from the cursor position to the beginning of the line, but it seems to delete the entire line, i.e. even words /after/ the cursor. Is this really the correct behavior?

Re: Strange behavior of d_

2006-09-15 Thread Tim Chase
I was expectig the normal mode command d_ (without count) to delete from the cursor position to the beginning of the line, but it seems to delete the entire line, i.e. even words /after/ the cursor. Is this really the correct behavior? Yes, as :help _ details, the "_" motion is line

Re: Strange behavior of d_

2006-09-15 Thread Georg Dahn
Stefan Karlsson wrote: I was expectig the normal mode command d_ (without count) to delete from the cursor position to the beginning of the line, but it seems to delete the entire line, i.e. even words /after/ the cursor. d0 in Normal mode does what you want to do. Is this really the correct

Re: Strange behavior of d_

2006-09-15 Thread A.J.Mechelynck
Stefan Karlsson wrote: I was expectig the normal mode command d_ (without count) to delete from the cursor position to the beginning of the line, but it seems to delete the entire line, i.e. even words /after/ the cursor. Is this really the correct behavior? from ":help _"

Re: Strange behavior of d_

2006-09-15 Thread Stefan Karlsson
> > > > Is this really the correct behavior? > > Yes, as > > :help _ > > details, the "_" motion is linewise which will produce the > behavior you describe...the equiv. of "dd". > > You can either force it to be character-wise: > > dv_ > > or you can use > > d^ > > which will, wit

Re: Two """problems"""

2006-09-15 Thread Pete Johns
On Fri, 2006-09-15 at 20:20:58 +0200, A.J.Mechelynck sent: >You could simply do > >:%g/.{73,}/normal gqq > >see "help gqq" > >This would of course keep the hard line break (if there is one) >between ...Very Very Very and Very Very Very long line. You >can't have it both ways. > Indeed. The alternat

(Re.)mapping of the so called Meta- (Alt-) keys

2006-09-15 Thread Meino Christian Cramer
Hi, I tried to remap several Alt-/Meta- key sequences to other and to commands. Sometimes it works, sometimes it does not. I see no logic behind this behaviour. It seems, that I miss certain informations hot to do this the right way. My terminal emits Meta- and Alt- keysequences in binary f

Re: (Re.)mapping of the so called Meta- (Alt-) keys

2006-09-15 Thread A.J.Mechelynck
Meino Christian Cramer wrote: Hi, I tried to remap several Alt-/Meta- key sequences to other and to commands. Sometimes it works, sometimes it does not. I see no logic behind this behaviour. It seems, that I miss certain informations hot to do this the right way. My terminal emits Meta- a

Re: (Re.)mapping of the so called Meta- (Alt-) keys

2006-09-15 Thread Meino Christian Cramer
From: "A.J.Mechelynck" <[EMAIL PROTECTED]> Subject: Re: (Re.)mapping of the so called Meta- (Alt-) keys Date: Sat, 16 Sep 2006 07:47:04 +0200 > Meino Christian Cramer wrote: > > Hi, > > > > I tried to remap several Alt-/Meta- key sequences to other and to > > commands. Sometimes it works, somet