Colorful and Syntax highlight enabled VIM on OpenSolaris
When editing some text file or program code in OpenSolaris, you may want to use VI or VIM. But, OpenSolaris cannot give you a colorful and syntax highlight enabled vim by default. Fortunately, These two functions can be actived by writing some text into ~/.vimrc, in another word, we can configure vim profile to enable that functions.
So, let’s do it *right now*! Just follow this steps:
open ~/.vimrc and put the following text into the file:
set term=xtermc
set nu
if &t_Co > 1
syntax on
endif
open ~/.bashrc to let vi alias to vim, just append the text into ~/.bashrc:
alias vi=‘vim’
Done! Congratulations!
Recent Comments