Madhu Desai |
04-24-2013 10:48 AM |
You can install vim by:
Code:
# yum install vim-X11 vim-common vim-enhanced vim-minimal
then, its good idea to set alias to vi
Code:
# echo "alias vi=vim" >> /etc/profile
# echo "alias vi=vim" >> /etc/bashrc
# source /etc/profile
# source /etc/bashrc
and then, if you wish, you can use following codes in vimrc file for coloring and indention: (insert at bottom of file)
PHP Code:
syntax on set ruler set number set tabstop=4 set shiftwidth=4 set autoindent set smartindent set showmatch set nocompatible set incsearch set hlsearch
|