se nocompatible filetype off se rtp+=~/.vim/bundle/neobundle.vim call neobundle#begin(expand('~/.vim/bundle/')) NeoBundleFetch 'Shougo/neobundle.vim' NeoBundle 'tpope/vim-sensible' NeoBundle 'Valloric/YouCompleteMe' , { \ 'build' : { \ 'unix' : './install.sh --clang-completer --system-libclang' \ }, \ } NeoBundle 'Shougo/vimproc.vim' , { \ 'build' : { \ 'windows' : 'make -f make_mingw32.mak', \ 'cygwin' : 'make -f make_cygwin.mak', \ 'mac' : 'make -f make_mac.mak', \ 'unix' : 'make -f make_unix.mak', \ }, \ } NeoBundle 'Shougo/unite.vim' NeoBundle 'tsukkee/unite-tag' NeoBundle 'Shougo/neomru.vim' NeoBundle 'nanotech/jellybeans.vim' NeoBundle 'majutsushi/tagbar' NeoBundle 'bling/vim-airline' NeoBundle 'scrooloose/syntastic' NeoBundle 'tomtom/tcomment_vim' "NeoBundle 'Raimondi/delimitMate' NeoBundle 'kchmck/vim-coffee-script' NeoBundle 'ledger/vim-ledger' NeoBundle 'dag/vim2hs' NeoBundle 'eagletmt/ghcmod-vim' NeoBundle 'eagletmt/neco-ghc' NeoBundle 'tpope/vim-fireplace' " clojure repl NeoBundle 'marijnh/tern_for_vim' NeoBundle 'jnwhiteh/vim-golang' NeoBundle 'Blackrush/vim-gocode' NeoBundle 'zah/nimrod.vim' NeoBundle 'wting/rust.vim' NeoBundle 'derekwyatt/vim-scala' NeoBundle 'othree/html5.vim' NeoBundle 'dogrover/vim-pentadactyl' NeoBundle 'idris-hackers/idris-vim' NeoBundle 'tpope/vim-fugitive' " git integration NeoBundle 'LaTeX-Box-Team/LaTeX-Box' " vim-sleuth? call neobundle#end() filetype plugin indent on set tw=0 expandtab ts=8 sts=2 sw=2 sm ai si set ml mls=5 " scan 5 lines for modelines syn on " enable syntax highlighting set hls " highlight search set bg=dark " dark background filetype plugin on au BufNewFile,BufRead *.vala setf cs au syntax java set ts=4 sts=4 sw=4 au BufNewFile,BufRead *.i set ft=swig au BufReadCmd *.epub call zip#Browse(expand("")) au syntax haskell setl omnifunc=necoghc#omnifunc let g:necoghc_enable_detailed_browse=1 se foldlevel=99 set vb " turn on the "visual bell" - which is much quieter than the "audio blink" set nobackup se bs=2 let g:ycm_filetype_blacklist = { 'ledger' : 1, 'sql': 1 } let g:ycm_semantic_triggers = {'haskell' : ['.']} let g:ycm_show_diagnostics_ui = 1 let g:jellybeans_background_color = '000000' if &term == "screen" || &term == "screen-bce" set t_ts=k set t_fs=\ endif set title " unite bindings if executable('ag') let g:unite_source_grep_command = 'ag' let g:unite_source_grep_default_opts = '--noheading --nocolor' endif " The prefix key nnoremap [unite] nmap [unite] " General purpose nnoremap [unite] :Unite -start-insert source " Files nnoremap [unite]f :Unite -start-insert file_rec/async " Grepping nnoremap [unite]g :Unite grep:. nnoremap [unite]d :Unite grep:.:-s:\(TODO\|FIXME\) " Content nnoremap [unite]o :Unite -start-insert -auto-preview outline nnoremap [unite]l :Unite -start-insert line nnoremap [unite]t :Unite -auto-preview -start-insert tag " Quickly switch between recent things nnoremap [unite]F :Unite buffer tab file_mru directory_mru nnoremap [unite]b :Unite buffer nnoremap [unite]m :Unite file_mru " Yank history nnoremap [unite]y :Unite history/yank