victor
victor

Reputation: 6768

Vim syntax highlighting not working (but works in gvim?)

I've followed all instructions given on this site with an empty .vim folder, but for some reason, python highlighting is not working on my system. It only highlights the comments and a few variables - nothing like the picture.

http://concisionandconcinnity.blogspot.com/2009/07/vim-part-i-improved-python-syntax.html

Is there some other setting I am forgetting?

I'm also using ubuntu 10.04 if that matters.

A weird other note - it works in gvim, but not vim?

Upvotes: 0

Views: 1405

Answers (3)

apparat
apparat

Reputation: 1954

I think ubuntu installs vim in a minimal package (vim-tiny) with some features missing. You can try to upgrade your vim to the full version:

sudo apt-get install vim-full

Upvotes: 0

bc17
bc17

Reputation: 181

If you don't want to change the colorscheme, you should check out CSApprox.vim. It allows you to use colorschemes made for gvim in vim.

http://www.vim.org/scripts/script.php?script_id=2390

Upvotes: 2

Randy Morris
Randy Morris

Reputation: 40947

The colorscheme used in that tutorial is only for gvim. Try changing your colorscheme.

Upvotes: 0

Related Questions