From 152ccc8d8d26270536cee463226b29b760782a3d Mon Sep 17 00:00:00 2001 From: Jannik Zander <59698@grundfos.com> Date: Sun, 15 Jul 2018 20:39:20 +0200 Subject: [PATCH] Removed automatic 'cd build' for cmake --- .vim/vimrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.43.0