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

2006-08-04 Thread A.J.Mechelynck
Mohsin wrote: I want to use a highlighter mode on my text file, example: :color_region bold line1 col1 line2 col2 :color_region bold 5 5 6 6 :color_region underline 5 5 6 6 I couldn't do this in vim. Vim only has syntax coloring with regexps. Emacs has functions to apply properties to

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

2006-08-04 Thread Mohsin
The problem is I want to apply the highlighting to multiple blocks of text simultaneously, so regexp doesn't help. mohsin. On 8/4/06, Ilya [EMAIL PROTECTED] wrote: Mohsin wrote: I want to use a highlighter mode on my text file, example: :color_region bold line1 col1 line2 col2

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

2006-08-04 Thread A.J.Mechelynck
Mohsin wrote: I already tried your solution, it only works for a single region at a time On applying the same higlighting to second region and the first one is un-highlighted. Try this (the third command will unhilight the first region): :highlight User1 term=bold cterm=5 guibg=red match

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

2006-08-04 Thread A.J.Mechelynck
François Pinard wrote: [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 Humph, not really! Text

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

2006-08-04 Thread A.J.Mechelynck
Mohsin wrote: The problem is I want to apply the highlighting to multiple blocks of text simultaneously, so regexp doesn't help. mohsin. :help /\| Best regards, Tony.

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

2006-08-04 Thread Suresh Govindachar
François Pinard wrote: [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 Humph, not really! Text

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

2006-08-04 Thread A.J.Mechelynck
Suresh Govindachar wrote: [...] [snip entire para Tony wrote.] Tony, Your comments aren’t applicable to Francois. --Suresh Oops, sorry, the entire email sounded like a pro-Emacs rant to me, coming from that Mohsin guy who kept repeating I came from Emacs, and your Vim regexps can't do it

Re: What is the information in the leftmost two columns and how do I turn it off?

2006-08-04 Thread Yakov Lerner
On 8/4/06, M. Edward (Ed) Borasky [EMAIL PROTECTED] wrote: I recently updated to vim 7.0 on a Gentoo Linux system. Since then, some, but not all, of my editing sessions start out normally. After a second or two, though, the file is shifted right two columns and numbers appear in the first column

Re: What is the information in the leftmost two columns and how do I turn it off?

2006-08-04 Thread Yakov Lerner
On 8/4/06, M. Edward (Ed) Borasky [EMAIL PROTECTED] wrote: and numbers appear in the first column and signs in the second column. If the number you mention here are line numbers, try :set nonumber also. Yakov

Re: AsNeeded?

2006-08-04 Thread Bill McCarthy
On Mon 31-Jul-06 10:09am -0600, Charles E Campbell Jr wrote: Anyway, I've modified AsNeeded to defer to taglist for Tlist_ and Taglist_ functions in v14b. Thanks for the update! I've moved taglist to my AsNeeded directory as you suggested. taglist works well now except when a tag menu is

:e c:\notes\ vs. :Exp

2006-08-04 Thread striker
In Vim 7.0 on Windows XP, if I do the following: :e h:/notes/ I cannot close the buffer via :bd If I :cd h:/notes/ and then open the dir via :Exp , then the :bd command works fine. Any insight as to why this occurs would be helpful. TIA, Kevin

Re: Search and Replace with a Regular Expression

2006-08-04 Thread Marv Boyes
Chip, your solution worked beautifully. It didn't expand all of the years to four digits, but the new database app will take care of that. I really appreciate the help. Best wishes, Marv On 8/3/06, Charles E Campbell Jr [EMAIL PROTECTED] wrote: Marv Boyes wrote: For example, let's say I

Re: Search and Replace with a Regular Expression

2006-08-04 Thread Marv Boyes
Actually, I'm a Linux guy; just trapped behind Windows at work (though VMWare Player and an Ubuntu image get me through). I would have loved to have used Perl, if I had the faintest notion how. When it comes to programming, I never mad it beyond intermediate bash scripting, and enough Python to

Re: Search and Replace with a Regular Expression

2006-08-04 Thread striker
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 as thorough as the 'Camel' book, but has a lot of good info. and the

Re: Search and Replace with a Regular Expression

2006-08-04 Thread A.J.Mechelynck
Marv Boyes wrote: Actually, I'm a Linux guy; just trapped behind Windows at work (though VMWare Player and an Ubuntu image get me through). I would have loved to have used Perl, if I had the faintest notion how. When it comes to programming, I never mad it beyond intermediate bash scripting,

Re: What is the information in the leftmost two columns and how do I turn it off?

2006-08-04 Thread M. Edward (Ed) Borasky
Yakov Lerner wrote: On 8/4/06, M. Edward (Ed) Borasky [EMAIL PROTECTED] wrote: I recently updated to vim 7.0 on a Gentoo Linux system. Since then, some, but not all, of my editing sessions start out normally. After a second or two, though, the file is shifted right two columns and numbers

Viewing CVS diff with vim

2006-08-04 Thread Fabio Rotondo
Hi all, is it possible to pipe the CVS diff -r output to vim to use something like vimdiff to see the changes? Thanks, Fabio

how can one get the visual selection in a function?

2006-08-04 Thread Preben Randhol
hi I have a function like this: function! template(text) Do something with the text and return the result What I would like to do now is to be able to press a key let say F5 in visual mode and the text that I have selected should be passed into the text variable of the template

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

2006-08-04 Thread Tim Chase
function! template(text) Do something with the text and return the result What I would like to do now is to be able to press a key let say F5 in visual mode and the text that I have selected should be passed into the text variable of the template function. Is this possible? I

Re: Viewing CVS diff with vim

2006-08-04 Thread Srinivas Rao. M
On Fri, 2006-08-04 at 19:29, Fabio Rotondo wrote: Hi all, is it possible to pipe the CVS diff -r output to vim to use something like vimdiff to see the changes? You can use CVSCommand plugin : http://www.vim.org/scripts/script.php?script_id=90

editing within visual block

2006-08-04 Thread Weiguang Shi
Hi Vimmers, Does Vim support something like editing within visual blocks? I'm imagining here that Vim single out the current visual block as a window and, while in this Visual-Editing mode, all the vim Normal mode commands apply to this window. Or there could be some clever scripts to do the

ANN: vcscommand beta 3 (supercedes cvscommand)

2006-08-04 Thread Bob Hiestand
Hello, I have released a beta version of vcscommand, which updates cvscommand to VIM 7 (required) and adds support for Subversion (SVN) as well as providing a framework for incorporating additional similar source control systems. The plugin is available at:

cterm256?

2006-08-04 Thread Mikolaj Machowski
Hello, Since Konsole in KDE 3.5.4 supports 256 colors it could be nice if Vim could use them. Is any way to convince Vim to use guibg/guifg from syntax files in console? m.

Re: can vim do this?

2006-08-04 Thread Lev Lvovsky
Thanks everyone for your help on this! The advice below seems to be all that I need. I forgot to ask one last thing - if I'm searching for something in a text file, can I have vim select every existing string that matches up to what I've typed at that point? Meaning, if the first two

Re: can vim do this?

2006-08-04 Thread Tim Chase
I forgot to ask one last thing - if I'm searching for something in a text file, can I have vim select every existing string that matches up to what I've typed at that point? Meaning, if the first two characters of what I'm looking for are va, all va gets highlighted as I type, then when I

Re: can vim do this?

2006-08-04 Thread Lev Lvovsky
Thanks Tim - is that to say that this functionality doesn't exist in vim? -lev On Aug 4, 2006, at 10:47 AM, Tim Chase wrote: :help incsearch :help hls Using 'incsearch' doesn't highlight them all as you type, just the current match. However, with 'hls' set, once you hit enter, it will

Re: What is the information in the leftmost two columns and how do I turn it off?

2006-08-04 Thread A.J.Mechelynck
M. Edward (Ed) Borasky wrote: Yakov Lerner wrote: On 8/4/06, M. Edward (Ed) Borasky [EMAIL PROTECTED] wrote: I recently updated to vim 7.0 on a Gentoo Linux system. Since then, some, but not all, of my editing sessions start out normally. After a second or two, though, the file is shifted

Re: can vim do this?

2006-08-04 Thread Tim Chase
:help incsearch :help hls Using 'incsearch' doesn't highlight them all as you type, just the current match. However, with 'hls' set, once you hit enter, it will highlight all the items it found...not quite the behavior you described, but close. Thanks Tim - is that to say that this

Re: can vim do this?

2006-08-04 Thread Lev Lvovsky
On Aug 4, 2006, at 10:56 AM, Tim Chase wrote: Thanks Tim - is that to say that this functionality doesn't exist in vim? 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

Re: cterm256?

2006-08-04 Thread cga2000
On Fri, Aug 04, 2006 at 09:12:46AM EDT, Mikolaj Machowski wrote: Hello, Since Konsole in KDE 3.5.4 supports 256 colors it could be nice if Vim could use them. Is any way to convince Vim to use guibg/guifg from syntax files in console? If I understand correctly one problem is to map the 256

quick regex question

2006-08-04 Thread Ben lemasurier
Hey everyone, I work with someone who formats their code like this: if(asafdlkasdf) { asdfasf } i write like this: if(asdfasfd) { safasdf } I wrote a little regex to fix the ) _newline_ { _newline_ problem but I am getting strange results here is the regex: %s/)\s*\n\s*{\n/) {\n/ig

Re: editing within visual block

2006-08-04 Thread A.J.Mechelynck
Weiguang Shi wrote: Hi Vimmers, Does Vim support something like editing within visual blocks? I'm imagining here that Vim single out the current visual block as a window and, while in this Visual-Editing mode, all the vim Normal mode commands apply to this window. Or there could be some

Re: quick regex question

2006-08-04 Thread Tim Chase
here is the regex: %s/)\s*\n\s*{\n/) {\n/ig It runs through but my code is getting formatted like this now if(asdf) { ^@ nextline_of_code _newline_ Vim uses various represenations at different points for nulls and for newlines. Just change the \n in your replacement portion to \r, making

Re: Search pattern - without keywords

2006-08-04 Thread Charles E Campbell Jr
SHANKAR R-R66203 wrote: I want to match all the words in a file which are not keywords. In a verilog code, I want to match all the signal names execpt for the keywords. /\w\+ finds all the words. But How do I make vim understand, not to pick up any keyword. You may find LogiPat

Re: editing within visual block

2006-08-04 Thread Weiguang Shi
Thanks Tony. Dr. Chip's site seems to have a lot of vim-plugins. So far I just tried out the DrawIt. It looks like a good start and I search for more. Editing within visual blocks, I suspect, however, sounds like a feature better supported natively by Vim than its scripts. Regards. Wei ---

Re: cterm256?

2006-08-04 Thread A.J.Mechelynck
cga2000 wrote: On Fri, Aug 04, 2006 at 09:12:46AM EDT, Mikolaj Machowski wrote: Hello, Since Konsole in KDE 3.5.4 supports 256 colors it could be nice if Vim could use them. Is any way to convince Vim to use guibg/guifg from syntax files in console? If I understand correctly one problem is

Re: cterm256?

2006-08-04 Thread Bram Moolenaar
Mikolaj Machowski wrote: Since Konsole in KDE 3.5.4 supports 256 colors it could be nice if Vim could use them. Is any way to convince Vim to use guibg/guifg from syntax files in console? There is no standard way to get the colors from termcap/terminfo. For xterm Vim has the support

Re: What is the information in the leftmost two columns and how do I turn it off?

2006-08-04 Thread A.J.Mechelynck
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 scripts listed in the output of the :scriptnames command. How exactly do you

Re: can vim do this?

2006-08-04 Thread A.J.Mechelynck
Lev Lvovsky wrote: Thanks everyone for your help on this! The advice below seems to be all that I need. I forgot to ask one last thing - if I'm searching for something in a text file, can I have vim select every existing string that matches up to what I've typed at that point? Meaning, if