is it possible to make coloured text in VIM?
For example: "This sentence is in red color. This sentence is in black
color." The first should be in red.
Thank you,
Andrius
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
02-04-2008, 04:13 PM
Raj Kiran Grandhi
Colours in VIM
Pantor wrote:
Hi lads,
is it possible to make coloured text in VIM?
For example: "This sentence is in red color. This sentence is in black
color." The first should be in red.
For colors and fancy formatting, something like openoffice would be more
suited. VIM is a text editor. You can ask it to display text colored
according to some predefined syntax, but not arbitrarily.
--
Raj Kiran Grandhi
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
02-04-2008, 04:24 PM
Ron Johnson
Colours in VIM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/04/08 11:13, Raj Kiran Grandhi wrote:
> Pantor wrote:
>> Hi lads,
>>
>> is it possible to make coloured text in VIM?
>> For example: "This sentence is in red color. This sentence is in black
>> color." The first should be in red.
>
> For colors and fancy formatting, something like openoffice would be more
> suited. VIM is a text editor. You can ask it to display text colored
> according to some predefined syntax, but not arbitrarily.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
02-04-2008, 04:28 PM
Pantor
Colours in VIM
Ron Johnson wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/04/08 11:13, Raj Kiran Grandhi wrote:
Pantor wrote:
Hi lads,
is it possible to make coloured text in VIM?
For example: "This sentence is in red color. This sentence is in black
color." The first should be in red.
For colors and fancy formatting, something like openoffice would be more
suited. VIM is a text editor. You can ask it to display text colored
according to some predefined syntax, but not arbitrarily.
Exim4 is ready, Fetchmail almost working, hope that Procmail will do job
in days, then Mutt in couple weeks. And of course always vim.
Andrius
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
02-04-2008, 04:30 PM
Pantor
Colours in VIM
Raj Kiran Grandhi wrote:
Pantor wrote:
Hi lads,
is it possible to make coloured text in VIM?
For example: "This sentence is in red color. This sentence is in black
color." The first should be in red.
For colors and fancy formatting, something like openoffice would be more
suited. VIM is a text editor. You can ask it to display text colored
according to some predefined syntax, but not arbitrarily.
Should be possibility to put colors on ascii charset.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
02-04-2008, 08:43 PM
William Pursell
Colours in VIM
Raj Kiran Grandhi wrote:
Pantor wrote:
Hi lads,
is it possible to make coloured text in VIM?
For example: "This sentence is in red color. This sentence is in black
color." The first should be in red.
For colors and fancy formatting, something like openoffice would be more
suited. VIM is a text editor. You can ask it to display text colored
according to some predefined syntax, but not arbitrarily.
Actually, you can pretty much to anything you want, so I think
"arbitrary" is an accurate description. You'll want to read
the help pages within vim for details, but if you want to have
the word "red" appear in red while the word "blue" appears
in blue, one way to do it is to put the following in
~/.vim/syntax/foo.vim:
syn match red "red"
syn match blue "blue"
hi red ctermfg=red
hi blue ctermfg=blue
Now, either in your .vimrc or by hand, execute (from within vim):
set syntax=foo
(The ctermfg refers to the console, (cterm == color term). If
you are running gvim, you'll probably want to replace ctermfg with
guifg)
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org