From: Jannik Zander <59698@grundfos.com> Date: Sun, 15 Jul 2018 16:39:59 +0000 (+0200) Subject: Removed automatic project root detection X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=822be0ac4c7f8245eb5df792df4563d58d33578c;p=dotfiles.git Removed automatic project root detection --- diff --git a/.vim/vimrc b/.vim/vimrc index 9c71bc7..7c46195 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -109,11 +109,10 @@ let &t_EI.="\e[1 q" let &t_te.="\e[0 q" " make -function! s:Msvc(path) +function! s:Msvc(build) let &errorformat="%f(%l) : %t%*\\D%n: %m,%*[^\"]\"%f\"%*\\D%l: %m,%f(%l) : %m,%*[^ ] %f %l: %m,%f:%l:%c:%m,%f(%l):%m,%f|%l| %m" - let &makeprg='cd ' . a:path . '; cmake ' - let b:asyncrun_root = '~/projects/applayer' - exe 'AsyncRun -cwd= mkdir -p ' . fnameescape(a:path) + let &makeprg='cd ' . a:build. '; cmake ' + exe 'AsyncRun mkdir -p ' . fnameescape(a:build) endfunction command! -bang -nargs=1 -complete=file Msvc call s:Msvc() @@ -209,9 +208,9 @@ packadd asyncrun.vim let g:asyncrun_open = 8 let g:asyncrun_status = "stopped" let g:asyncrun_auto = "make" -let g:asyncrun_rootmarks = ['.git'] -command! -bang -nargs=* -complete=file Make AsyncRun -cwd= -program=make @ -command! -bang -nargs=* -complete=file Grep AsyncRun -cwd= -program=grep @ +command! -bang -nargs=* -complete=file Make AsyncRun -program=make @ +command! -bang -nargs=* -complete=file Grep AsyncRun -program=grep @ + " Error markers packadd errormarker.vim