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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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:
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.
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
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
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
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
: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
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
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
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
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
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
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
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
---
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
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
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
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
39 matches
Mail list logo