Re: No way to color-region(s) of text -- highlighter mode.

2006-08-05 Thread Mikolaj Machowski
Dnia piątek, 4 sierpnia 2006 22:39, François Pinard napisał: [Mikolaj Machowski] [Mohsin]: Vim only has syntax coloring with regexps. Emacs has functions to apply properties to text blocks, and I was hoping vim has something comparable. Of course it is possible: :help /\%l :help /\%c

Bug or feature? When running GUI-enabled Vim in a console

2006-08-05 Thread A.J.Mechelynck
Bug or feature? When running GUI-enabled Vim in a console (not possible on W32, but on Unix it is), the has() and exists() functions do not always reflect the _current_ reality. Examples: :echo has(gui_gtk2) 1 In the above case it may be regarded as a feature: I can still check

Re: Vim-Runtime

2006-08-05 Thread A.J.Mechelynck
Martin Krischik wrote: [...] I was hoping there is a way without unduly stuffing Brams E-Mail inbox... Bram has the final say on what makes it into the official distribution anyway. Just be sure the Subject: line of your email clearly indicates what you're writing about. Martin PS: Take

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-05 Thread A.J.Mechelynck
François Pinard wrote: [...] I did not really take position about if Vim or Emacs are better than one another, or wrong altogether :-). But I do have an opinion: both are great editors, each with their own many virtues and few weaknesses, each being a good source of inspiration and ideas for

Re: Vim-Runtime

2006-08-05 Thread Yakov Lerner
On 8/4/06, Martin Krischik [EMAIL PROTECTED] wrote: How are updates to the runtime files submitted? You email them to Bram. Yakov

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-05 Thread A.J.Mechelynck
Nikolai Weibull wrote: [...] However, it can sort of be simulated by having marks that stick to the text position that they mark, instead of line + fixed column. (We don't have this kind of mark at the moment.) nikolai IIUC, Vim's marks _are_ normally anchored to the text they mark, not

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-05 Thread Nikolai Weibull
On 8/5/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: However, it can sort of be simulated by having marks that stick to the text position that they mark, instead of line + fixed column. (We don't have this kind of mark at the moment.) IIUC, Vim's marks _are_

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-05 Thread A.J.Mechelynck
Nikolai Weibull wrote: On 8/5/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: However, it can sort of be simulated by having marks that stick to the text position that they mark, instead of line + fixed column. (We don't have this kind of mark at the moment.) IIUC,

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-05 Thread Yakov Lerner
On 8/6/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: On 8/5/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: However, it can sort of be simulated by having marks that stick to the text position that they mark, instead of line + fixed column. (We

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-05 Thread A.J.Mechelynck
Yakov Lerner wrote: On 8/6/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: On 8/5/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: However, it can sort of be simulated by having marks that stick to the text position that they mark, instead of line

Editing within a Visual Block

2006-08-05 Thread Weiguang Shi
Hi, I was wondering if there is a plan to add the feature of Normal-mode editing within a visual block. This would be very useful when drawing ASCII figures in Vim, when you want to focus on and make changes in a region. I haven't seen so far scripts smart enough to support, e.g., the Normal

Re: Vim-Runtime

2006-08-05 Thread Mikolaj Machowski
Dnia sobota, 5 sierpnia 2006 15:03, Martin Krischik napisał: - Many runtime files, and in particular most of the help files, have been reissued with new or updated contents for version 7.0. You should find them, for instance, under vim70/runtime/ in

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-05 Thread Nikolai Weibull
On 8/5/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: When breaking a line before a mark, the mark stays with the part-line before the line break: And I repeat: Bug? No. That's just the way marks work. And it's a misfeature in my opinion. It's always possible to add another type of mark

Re: Editing within a Visual Block

2006-08-05 Thread A.J.Mechelynck
Weiguang Shi wrote: Hi, I was wondering if there is a plan to add the feature of Normal-mode editing within a visual block. This would be very useful when drawing ASCII figures in Vim, when you want to focus on and make changes in a region. I haven't seen so far scripts smart enough to

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-05 Thread A.J.Mechelynck
Nikolai Weibull wrote: On 8/5/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: When breaking a line before a mark, the mark stays with the part-line before the line break: And I repeat: Bug? No. That's just the way marks work. And it's a misfeature in my opinion. It's always possible to add

Re: Editing within a Visual Block

2006-08-05 Thread Weiguang Shi
--- A.J.Mechelynck [EMAIL PROTECTED] wrote: ... To draw ASCII figures within an area of text, I suggest Virtual-Replace mode (see :help gR and :help Virtual-Replace-mode) with 'virtualedit' set to all. I tried the V-R mode and found it very useful, thanks! To be able to swap lines

Re: No way to color-region(s) of text -- highlighter mode.

2006-08-05 Thread Nikolai Weibull
On 8/6/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: It's always possible to add another type of mark that stays with the text, whatever happens, and I don't think it should be too hard to implement, see mark_col_adjust(). But Bram thought it would be difficult and

Re: Search and Replace with a Regular Expression

2006-08-05 Thread Matthew Winn
On Fri, 4 Aug 2006 09:07:35 -0400, striker [EMAIL PROTECTED] wrote: I agree with Chip and have a recommendation. Since you have been using Vim, Perl will be much easier to learn. A very good beginning book on Perl is located at http:// learn.perl.org/library/beginning_perl/ . It is not

Re: how can one get the visual selection in a function?

2006-08-05 Thread Preben Randhol
On Fri, 04 Aug 2006 10:02:55 -0500 Tim Chase [EMAIL PROTECTED] wrote: Well, you mention not wanting to manually yank the text...however, if it was automatically yanked into a register for you, would that be okay? Or do you not want to touch the unnamed register at all? If the former is

fonts for gui menu (gtk)

2006-08-05 Thread Andrei A. Voropaev
Hi! Can anyone explain me how the font for menu in GUI is selected? I have 3 computers with the same set of fonts and the same configuration for fonconfig, the same version of gvim (different GTK though) and on all 3 machines I get different menu font :) The worse is on the laptop. There the font

Re: how can one get the visual selection in a function?

2006-08-05 Thread Preben Randhol
On Sat, 05 Aug 2006 10:28:13 +0200 Preben Randhol [EMAIL PROTECTED] wrote: :vnoremap f4 yyic-r=Template(@y)cresc However, this works: vmap f4 y:call Template('c-r=@@CR')CR Preben

Search messages (was: What is the information in the leftmost two columns and how do I turn it off?)

2006-08-05 Thread Christian Ebert
Hi Tony, * A.J.Mechelynck on Saturday, August 05, 2006 at 01:25:22 +0200: Christian Ebert wrote: * A.J.Mechelynck on Friday, August 04, 2006 at 19:51:53 +0200: You may want to determine which script or plugin is responsible: search for the word sign (i.e. the pattern /\sign\/ ) in the

Trying to change cursor shape...

2006-08-05 Thread William O'Higgins Witteman
I'm trying to change the shape of the cursor in console vim. I inquired about this a few weeks ago, and so provided with the helpful suggestion of looking into :help termcap-cursor-shape Well and good, I have a chance to try it out. I was going to start with the example from the help screen,

Re: Search messages

2006-08-05 Thread A.J.Mechelynck
Christian Ebert wrote: Hi Tony, [...] This was the answer I was expecting, but you wrote a whole manual! Thank you very much; this is really kind. I'm a retired teacher. Sometimes it shows. ;-) [...] Thanks again. c My pleasure. Best regards, Tony.

backup character ~

2006-08-05 Thread Donn Washburn
Hey Group; REF: backup file name - file~ I have tried turning this off in ~/.vimrc and it still works. I find this character as a pain because double clicking fails to see a ~ and without being careful it is possible to delete the wrong file seen which is missing the ~. I have looked in

Re: fonts for gui menu (gtk)

2006-08-05 Thread cga2000
On Sat, Aug 05, 2006 at 05:53:56AM EDT, Andrei A. Voropaev wrote: Hi! Can anyone explain me how the font for menu in GUI is selected? I have 3 computers with the same set of fonts and the same configuration for fonconfig, the same version of gvim (different GTK though) and on all 3 machines

Re: Trying to change cursor shape...

2006-08-05 Thread A.J.Mechelynck
William O'Higgins Witteman wrote: I'm trying to change the shape of the cursor in console vim. I inquired about this a few weeks ago, and so provided with the helpful suggestion of looking into :help termcap-cursor-shape Well and good, I have a chance to try it out. I was going to start with

Re: backup character ~

2006-08-05 Thread A.J.Mechelynck
Donn Washburn wrote: Hey Group; REF: backup file name - file~ I have tried turning this off in ~/.vimrc and it still works. I find this character as a pain because double clicking fails to see a ~ and without being careful it is possible to delete the wrong file seen which is missing the ~.

Re: backup character ~

2006-08-05 Thread A.J.Mechelynck
Donn Washburn wrote: [...] Thanks Tony; As for a temp backup I do agree so that vim can repair/replace a goof instead of memory. I just get tired of removing file~ and finding out that I needed to find the ~ keyy to complete it. Thanks again and I will seeks out more use of vim help. If

Re: how can one get the visual selection in a function?

2006-08-05 Thread Preben Randhol
On Sat, 05 Aug 2006 09:05:56 -0500 Tim Chase [EMAIL PROTECTED] wrote: The zero is what is the return value of the function which is used as the replacement text. By default, if you don't specify a return-value for a function, it returns 0. I was expecting your function's return

Re: can vim do this?

2006-08-05 Thread Yakov Lerner
On 8/4/06, Lev Lvovsky [EMAIL PROTECTED] wrote: On Aug 4, 2006, at 10:56 AM, Tim Chase wrote: It doesn't exist exactly as you describe. You can highlight all hits of the thing actually searched for (:set hls), and you can highlight the current word incrementally as you type the search (:set

Re: fonts for gui menu (gtk)

2006-08-05 Thread Preben Randhol
On Sat, 5 Aug 2006 18:11:04 +0200 Andrei A. Voropaev [EMAIL PROTECTED] wrote: Hm. I didn't have neither of these files and didn't know how to create them. I assume you don't use Windows. vim ~/.gtkrc-2.0 and write this in the file: gtk-font-name = Sans 9 gtk-can-change-accels=1 Preben

Smarter Indent (an odd problem)

2006-08-05 Thread JStrom
I don't like having the indentation running when I work on HTML files (once I get a few elements deep it's a real pain to work with) so I tried disabling this functionality. I eventually added the following to my html.vim file: set noai set nocin set noci set nosi set nopi set indentexpr= set

Re: Smarter Indent (an odd problem)

2006-08-05 Thread Yakov Lerner
On 8/5/06, JStrom [EMAIL PROTECTED] wrote: I don't like having the indentation running when I work on HTML files (once I get a few elements deep it's a real pain to work with) so I tried disabling this functionality. I eventually added the following to my html.vim file: set noai set nocin set

Re: fonts for gui menu (gtk)

2006-08-05 Thread cga2000
On Sat, Aug 05, 2006 at 12:11:04PM EDT, Andrei A. Voropaev wrote: On Sat, Aug 05, 2006 at 08:47:42AM -0400, cga2000 wrote: On Sat, Aug 05, 2006 at 05:53:56AM EDT, Andrei A. Voropaev wrote: Hi! Can anyone explain me how the font for menu in GUI is selected? I have 3 computers with

how to check if we are inside phpRegion

2006-08-05 Thread Yakov Lerner
Let's say I want to check if we are inside phpRegion (?php...?). I am aware of synID(), synIDattr() and synIDtrans() functions, but they only tell the lower-most syntax group. The current point has the whole stack of regions and matches above it. right, and what ig I want to check if pfpRegion

Re: Smarter Indent (an odd problem)

2006-08-05 Thread Peter Hodge
Hi Yakov, --- Yakov Lerner [EMAIL PROTECTED] wrote: Must be possible using CursorMoves autoevent, except that I don't see in syntax/html.vim how ?php ... ? is handled. Is is indeed in syntax /html.vim ? PHP stuff is in syntax/php.vim which loads html.vim inside it. regards, Peter Send

matchstr() ?

2006-08-05 Thread Bill McCarthy
Hello Vim List, Example 1: :echo . matchstr( 1.2345 ,[0-9.]) . CR 1 Example 2: :echo . matchstr( 1.2345 ,[0-9.]*) . CR Why isn't the second exampe returning 1.2345? Is there a better way of stripping spaces off a string? -- Best regards, Bill

Re: matchstr() ?

2006-08-05 Thread A.J.Mechelynck
Bill McCarthy wrote: Hello Vim List, Example 1: :echo . matchstr( 1.2345 ,[0-9.]) . CR 1 Example 2: :echo . matchstr( 1.2345 ,[0-9.]*) . CR Why isn't the second exampe returning 1.2345? Is there a better way of stripping spaces off a string? What you get is the first

Re: matchstr() ?

2006-08-05 Thread A.J.Mechelynck
Bill McCarthy wrote: On Sat 5-Aug-06 10:42pm -0600, A.J.Mechelynck wrote: Bill McCarthy wrote: Example 1: :echo . matchstr( 1.2345 ,[0-9.]) . CR 1 Example 2: :echo . matchstr( 1.2345 ,[0-9.]*) . CR Why isn't the second exampe returning 1.2345? Is there a better way