how to make my vim colorful in xubuntu

Marius Gedminas marius at pov.lt
Sat Nov 1 07:52:02 UTC 2008


On Sat, Nov 01, 2008 at 03:23:36PM +0800, loody wrote:
> 2008/11/1 loody <miloody at gmail.com>:
> >> Edit /etc/vim/vimrc and uncomment line 20
> >> syntax on
> >>
> >> That's it if you still don't see the colors, try to search for some useful
> >> packages
> >> aptitude search vim
> >> and you'll find what you need
> Hi:
> The syntax on works fine.
> But I have another little question, how can I let the match pattern be
> different color in vim.
> Suppose I use /search in command mode, I hope vim will use different
> color mark the "search" in my document.
> I have check the vimrc file, but cannot find the comment option for my
> requirement.
> appreciate your help,
> miloody

vim has a nice on-line help system you can access with :help.

The answer to your question is :set hlsearch.

HTH,
Marius Gedminas
-- 
Real programmers don't write in BASIC.  Actually, no programmers write in
BASIC after reaching puberty.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20081101/84b0ca7e/attachment.pgp>


More information about the ubuntu-users mailing list