Enable syntax highlighting and colors in vim
You're editing a C source file and while you're still in vim editor session and want to enable syntax highligting feature, just give the following command, pressing ESC before:
:syntax on
You can make this behaviour as default for your own future user session entering following lines in your .vimrc file:
syntax on
You can even make this behaviour as a system wide default with entering above lines in /etc/vim/vimrc configuration file.
- 1 Comment
- Murat Demirten
- 28 Apr 2008, 08:43
-
sign-up for an account to post comments.
Maybe you should look at these also:
USERBOX
CATEGORIES
MOST READ TODAY
LAST ADDED
- Using iPhone internet sharing over bluetooth under Linux
- Using USB sound card with amarok
- Multi-conditional search and replace (clearing a ftp trojan script example)
- Disabling ipv6 functionality
- How to convert a mp3 file
- How to choose the fastest Debian mirror
- Disabling reverse dns lookups in ssh
- Rewriting destination ip address
- Deleting A File By It's Inode Value
- Learning which libraries are used for a binary

If you use Debian, default installed vim package is vim-tiny which does not support syntax highlighting. For syntax highlighting, vim-runtime package should be installed.