Custom high performance search engine development contract or hire by Kevin Duraj Tel: (310) 774-948

Category Archives: Ubuntu

VIM replace tab for spaces

vi ~/.vimrc
To get vim to interpret tab as an “indent” command instead of an insert-a-tab command, do this:
set softtabstop=2
To set the mod-N indentation used when you hit the tab key in vim (what Emacs calls c-basic-offset), do this:
set shiftwidth=2
To cause the TAB file-character to be displayed as mod-N in vi and vim (what Emacs calls [...]

VIM enable color

# Install VIM editor
CentOS: yum -y install vim*
Ubuntu: sudo apt-get install vim-full
Mac: sudo port install vim

# Add alias to .bashrc (linux) or .bash_profile (Mac)
alias vi=’vim’

# Set color in .vimrc configuration
vi ~/.vimrc
syntax on