colors darkblue set number set numberwidth=4 set columns=140 set lines=72 set hlsearch set guifont=Hack\ 8 set tabstop=2 set shiftwidth=2 set wrap set linebreak set cindent cino=j1 set ic set makeprg=b2 set incsearch set smartcase set diffopt+=iwhite set backupdir=/tmp set directory=/tmp set undodir=/tmp set spelllang=en set nospell tmenu ToolBar.Make Write all and make amenu ToolBar.Make :wa\|mak au BufRead,BufNewFile *.ll set filetype=lex map :cl map :cl! map :call GitDiffDir() map :call GitDiffCDir() set diffexpr=MyDiff() map :VCSVimDiff au FileType xml,xslt setlocal equalprg=xmllint\ --format\ --recover\ - au FileType json setlocal equalprg=python\ -m\ json.tool au FileType cpp,h map :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp, au FileType cpp,h map :sp %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp, au FileType c,cpp,jam,h,slice map :wa:set makeprg=b2\ -qj3:mak au FileType c,cpp,jam,h,slice map :wa:set makeprg=b2\ -qj3\ pch=off:mak au FileType c,cpp,jam,h,slice map :wa:set makeprg=b2\ -qj3\ variant=release:mak au FileType c,cpp,jam,h,slice map :wa:set makeprg=b2\ -q:mak au FileType c,cpp,h map :call LoadCov() au FileType dot map :wa:set makeprg=dot\ %\ -Tpng\ -O:mak au FileType cpp,h map :wa:set makeprg=doxygen:mak au FileType ebuild map :w:!ebuild % manifest au FileType ebuild map :w:!ebuild % clean au FileType ebuild map :w:!ebuild % compile au FileType ebuild map :w:!ebuild % install au FileType ebuild map :w:!ebuild % test au FileType ebuild map :w:!ebuild % manifest clean au FileType ebuild map :w:!ebuild % manifest clean compile au FileType ebuild map :w:!ebuild % manifest clean compile install au FileType ebuild map :w:!ebuild % manifest clean compile test au FileType ebuild map :w:!sudo ebuild % merge au FileType gitcommit setlocal spell map :lfirzzk map :lnextzzk map :lnextzzk map :cn map :cN map gg=G map :GitGutterStageHunk map zl map zh map :YcmForceCompileAndDiagnostics map :NERDTree map NERDCommenterToggle set wildmode=longest:full set wildmenu set autoread set enc=utf8 set foldenable set foldmethod=syntax set foldcolumn=4 set foldlevel=100 function! LoadCov() execute "!(cd /tmp && find ". expand("%:p:h") ." -name *.o -path */coverage/* | xargs gcov -r -p > /dev/null)" let path = "/tmp/".substitute(@%, "/", "\\\\\\\#", "g").".gcov" echo path execute ":GcovLoad ".path endfunction function! SvnDiffDir() let output = substitute(system('pwd | md5sum | cut -b-32'), "\n", "", "") let path = "/tmp/svndiff-".output.".patch" execute "!svn diff --force --no-diff-deleted -x -b > ".path execute "!dos2unix ".path execute "e ".path endfunction function! HgDiffDir() let output = substitute(system('pwd | md5sum | cut -b-32'), "\n", "", "") let path = "/tmp/hgdiff-".output.".patch" execute "!hg diff -p -b > ".path execute "!dos2unix ".path execute "e ".path endfunction function! GitDiffDir() let output = substitute(system('pwd | md5sum | cut -b-32'), "\n", "", "") let path = "/tmp/gitdiff-".output.".patch" execute "!git diff --no-prefix --relative -b -M > ".path execute "!dos2unix ".path execute "e ".path endfunction function! GitDiffCDir() let output = substitute(system('pwd | md5sum | cut -b-32'), "\n", "", "") let path = "/tmp/gitdiffc-".output.".patch" execute "!git diff --no-prefix --cached --relative -b -M > ".path execute "!dos2unix ".path execute "e ".path endfunction function! MyDiff() let opt = "" if &diffopt =~ "icase" let opt = opt . "-i " endif if &diffopt =~ "iwhite" let opt = opt . "-b " endif silent execute "!diff -ad --binary " . opt . v:fname_in . " " . v:fname_new . \ " > " . v:fname_out endfunction let g:ycm_extra_conf_globlist = ['~/*','!~/*'] let g:ycm_register_as_syntastic_checker = 1 let g:ycm_always_populate_location_list = 1 let g:ycm_autoclose_preview_window_after_insertion = 1 let g:ycm_show_diagnostics_ui = 1 let g:ycm_error_symbol = '>>' let g:ycm_warning_symbol = '--' let g:ycm_enable_diagnostic_signs = 1 let g:ycm_enable_diagnostic_highlighting = 1 let g:ycm_echo_current_diagnostic = 1 let g:ycm_open_loclist_on_ycm_diags = 1 let g:ycm_server_python_interpreter = "/usr/bin/python3" let g:syntastic_always_populate_loc_list = 0 let g:gitgutter_diff_args = '-b' :highlight ExtraWhitespace ctermbg=red guibg=red :match ExtraWhitespace /\s\+$\| \+\ze\t|^\t*\zs \+/