From b6e93dfedb75714396d51f030099e9e5b7c7e5b5 Mon Sep 17 00:00:00 2001 From: Jannik Zander <59698@grundfos.com> Date: Sat, 14 Jul 2018 00:51:15 +0200 Subject: [PATCH] Errorformat visual --- .vim/vimrc | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/.vim/vimrc b/.vim/vimrc index 7893fbd..25b37aa 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -38,7 +38,6 @@ set titlestring=vim:\ %f " folding set foldmethod=syntax set foldopen+=jump,search -set foldlevel=1 set foldclose=all " keyboard @@ -108,11 +107,26 @@ let &t_ti.="\e[1 q" let &t_SI.="\e[5 q" let &t_EI.="\e[1 q" let &t_te.="\e[0 q" +"set errorformat=\ %#%f(%l)%#:\ %#%t%[A-z]%#\ :\ %m +"set errorformat+=%#:%#\ %[A-Z\ ]%#%n:%# " make +" visual studio set makeprg=cmake " filename(line): error|warning|fatal error C0000: message -set errorformat=\ %#%f(%l):\ %#%t%[A-z]%#\ %[A-Z\ ]%#%n:\ %m +set errorformat=\ %#%f(%l)%#:\ %#%t%[A-z]%#\ %[A-Z\ ]%#%n:\ %m +" filename(line): error|warning|fatal : message +"set errorformat=\ %#%f(%l)%#:\ %#%t%[A-z]%#\ :\ %m + +" IAR compiler +"set makeprg=vim-iarbuild.cmd +"set errorformat=%f(%l)\ :\ %m + +" Doxygen +"set makeprg=doxygen +"set errorformat+=%f:%l:\ %m + + " grep set grepprg=ag\ --vimgrep\ --skip-vcs-ignores\ --path-to-ignore\ ~/.ignore\ --cpp\ --cc @@ -185,9 +199,9 @@ let g:asyncrun_status = "stopped" let g:asyncrun_auto = "make" let g:airline_section_error = airline#section#create_right(['%{g:asyncrun_status}']) command! -bang -nargs=* -complete=file Make AsyncRun -program=make @ -augroup asyncrun - autocmd QuickFixCmdPost * call asyncrun#quickfix_toggle(8, 1) -augroup END +"augroup asyncrun +" autocmd QuickFixCmdPost * call asyncrun#quickfix_toggle(8, 1) +"augroup END " Error markers packadd errormarker.vim @@ -246,6 +260,11 @@ if has('autocmd') autocmd bufwritepost ~/.vim/vimrc source % autocmd bufwritepost ~/.vim/vimrc.local source % augroup END + + augroup quickfix + autocmd QuickFixCmdPost [^l]* nested cwindow + autocmd QuickFixCmdPost l* nested lwindow + augroup END endif " local settings -- 2.43.0