" folding
set foldmethod=syntax
set foldopen+=jump,search
-set foldlevel=1
set foldclose=all
" keyboard
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
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 @ <args>
-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
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