From: Jannik Zander <59698@grundfos.com> Date: Sun, 15 Jul 2018 18:39:20 +0000 (+0200) Subject: Removed automatic 'cd build' for cmake X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=152ccc8d8d26270536cee463226b29b760782a3d;p=dotfiles.git Removed automatic 'cd build' for cmake --- diff --git a/.vim/vimrc b/.vim/vimrc index 7c46195..06f6491 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -109,12 +109,11 @@ let &t_EI.="\e[1 q" let &t_te.="\e[0 q" " make -function! s:Msvc(build) +function! s:CmakeMsvc() 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:build. '; cmake ' - exe 'AsyncRun mkdir -p ' . fnameescape(a:build) + let &makeprg='cmake ' endfunction -command! -bang -nargs=1 -complete=file Msvc call s:Msvc() +command! -bang -nargs=0 -complete=file CmakeMsvc call s:CmakeMsvc() function! s:Doxygen() set errorformat+=%f:%l:\ %m @@ -128,6 +127,7 @@ function! s:Iar(path) endfunction command! -bang -nargs=0 -complete=file Iar call s:Iar() +call s:CmakeMsvc() " grep " file:line:coloumn:message