diff options
Diffstat (limited to 'gvimrc')
-rw-r--r-- | gvimrc | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -34,6 +34,7 @@ au FileType c,cpp,jam,h,slice map <F5> :wa<CR>:set makeprg=b2\ -qj3<CR>:mak<CR> au FileType c,cpp,jam,h,slice map <C-F5> :wa<CR>:set makeprg=b2\ -qj3\ pch=off<CR>:mak<CR> au FileType c,cpp,jam,h,slice map <S-F5> :wa<CR>:set makeprg=b2\ -qj3\ variant=release<CR>:mak<CR> au FileType c,cpp,jam,h,slice map <F6> :wa<CR>:set makeprg=b2\ -q<CR>:mak<CR> +au FileType c,cpp,h map <S-F9> :call LoadCov()<CR><CR> au FileType dot map <F5> :wa<CR>:set makeprg=dot\ %\ -Tpng\ -O<CR>:mak<CR><CR> au FileType cpp,h map <F12> :wa<CR>:set makeprg=doxygen<CR>:mak<CR><CR> map <F7> :lnext<CR> @@ -53,6 +54,12 @@ 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" |