""""""""Setup env"""""""" set t_Co=256 syntax enable set background=dark colorscheme Tomorrow-Night-Eighties set nu set laststatus=2 set hlsearch ignorecase "Auto indent filetype on filetype plugin on filetype indent on set autoindent set smartindent "Tab set tabstop=2 shiftwidth=0 expandtab set pastetoggle= let mapleader = ',' "Line wrapping set wrap set linebreak set nolist set nocompatible filetype off """"""""Setup Vundle"""""""" " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " let Vundle manage Vundle, required Plugin 'gmarik/Vundle.vim' """"""""Plugins"""""""" Plugin 'tpope/vim-fugitive' Plugin 'airblade/vim-gitgutter' Plugin 'scrooloose/nerdtree' Plugin 'bling/vim-airline' Plugin 'Townk/vim-autoclose' Plugin 'plasticboy/vim-markdown' Plugin 'kchmck/vim-coffee-script' Plugin 'pangloss/vim-javascript' Plugin 'jelera/vim-javascript-syntax' Plugin 'octol/vim-cpp-enhanced-highlight' Plugin 'tpope/vim-haml' Plugin 'hail2u/vim-css3-syntax' Bundle 'kien/ctrlp.vim' Bundle 'mattn/webapi-vim' Bundle 'mattn/gist-vim' Bundle 'vim-ruby/vim-ruby' Bundle 'scrooloose/nerdcommenter' Bundle 'tpope/vim-surround' Bundle 'ervandew/supertab' Bundle 'scrooloose/syntastic' call vundle#end() " required filetype plugin indent on " required """"""""Setup Airline"""""""" let g:airline_theme= 'bubblegum' let g:airline_powerline_fonts = 1 """"""""Setup GitGutter"""""""" let g:gitgutter_enabled = 1 let g:gitgutter_signs = 1 let g:gitgutter_highlight_lines = 0 """"""""Setup AutoClose"""""""" let g:AutoClosePairs = "() {} \" ` ' [] <>" """"""""Leader Commands"""""""" nnoremap n :NERDTreeToggle nnoremap w :w nnoremap i :PluginInstall nnoremap g :Gist nnoremap q :q nnoremap x :x nnoremap r :%s/ nnoremap v :vsplit nnoremap bd :bd nnoremap bn :bnext! nnoremap bp :bprevious! nnoremap c :lclose nnoremap t :! """"""Setup ctlp"""""" set runtimepath^=~/.vim/bundle/ctrlp.vim let g:ctrlp_map = 'p' let g:ctrlp_cmd = 'CtrlP' """"""Remap split movement"""""" nmap j j nmap k k nmap h h nmap l l """"""Improve indent in visual mode"""""" vnoremap < >gv """"""Enable Extra Cpp Syntax Highlighting Features"""""" let g:cpp_class_scope_highlight = 1 let g:cpp_experimental_template_highlight = 1 """"""Enable Better HTML AutoIndent"""""" let g:html_indent_inctags = 'html,body,head,tbody, div, img, a' """"""Enable vim-airline's tabline"""""" let g:airline#extensions#tabline#enabled = 1 """"""Config syntastic"""""" "Configure Error messages and their behavior set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 "Add and configure checkers let g:syntastic_html_tidy_exec = 'tidy5' let g:syntastic_cpp_cppcheck_exec = 'cppcheck' let g:syntastic_cpp_cpplint_exec = 'cpplint' let g:syntastic_cpp_checkers = ['gcc', 'cppcheck', 'cpplint'] let g:syntastic_vim_checkers = ['vint']