" Original > https://github.com/amix/vimrc " Modified by Derek " Set 5 lines to the cursor - when moving vertically using j/k set so=5 " Avoid garbled characters in Chinese language windows OS let $LANG='en' set langmenu=en " Always show current position set ruler " Height of the command bar set cmdheight=1 " Ignore case when searching set ignorecase " Highlight search results set hlsearch " Makes search act like search in modern browsers set incsearch " For regular expressions turn magic on (like egrep) set magic " Show matching brackets when text indicator is over them set showmatch " Enable syntax highlighting syntax enable " Set regular expression engine automatically set regexpengine=0 " Enable 256 colors palette in Gnome Terminal if $COLORTERM == 'gnome-terminal' set t_Co=256 endif set background=dark " Use Unix as the standard file type set ffs=unix,dos,mac " Turn backup off, since most stuff is in SVN, git etc. anyway... set nobackup set nowb set noswapfile " Use spaces instead of tabs set expandtab " 1 tab == 4 spaces set shiftwidth=4 set tabstop=4 " Wrap lines set wrap