Colours in VIM
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. Thank you, Andrius -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
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 |
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. AbiWord is much lighter & smaller than OOo. - -- Ron Johnson, Jr. Jefferson LA USA PETA - People Eating Tasty Animals -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHp0pUS9HxQb37XmcRAms8AKDH+yvpPo1qtlsQyoSoti xiY39M3QCgtRqr GsADfAxbVnAqXlRS7jqIIHw= =VtVS -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
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. AbiWord is much lighter & smaller than OOo. - -- Ron Johnson, Jr. Jefferson LA USA PETA - People Eating Tasty Animals -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHp0pUS9HxQb37XmcRAms8AKDH+yvpPo1qtlsQyoSoti xiY39M3QCgtRqr GsADfAxbVnAqXlRS7jqIIHw= =VtVS -----END PGP SIGNATURE----- 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 |
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 |
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 |
| All times are GMT. The time now is 01:24 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.