""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " General """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Sets how many lines of history VIM has to remember set history=1000 " Set to auto read when a file is changed from the outside set autoread " Set to auto write on opening an other file. set autowrite " Use mouse or not "set mouse=-a """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " VIM user interface """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Always show current position set ruler " Highlight search results set hlsearch " Makes search act like search in modern browsers set incsearch " Show matching brackets when text indicator is over them set showmatch " line number set number """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Colors and Fonts """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " syntax highlight syntax enable " color scheme set background=dark colorscheme solarized " Set utf8 as standard encoding and en_US as the standard language set encoding=utf8 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Text, tab and indent related """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " auto indent's tab size set shiftwidth=4 " 1 tab == 4 spaces set tabstop=4 " c style auto indent set cindent " #if has to be first on the line set smartindent """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Coding """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " fold functions by syntax. " open a folded function using 'zo' " clase a function using 'zc' set foldmethod=indent set foldnestmax=1