" fonts
set list
if has('multi_byte') && &encoding ==# 'utf-8'
- let &listchars = 'tab:Ã\83Â\83Ã\82¢Ã\83Â\82Ã\82Â\96Ã\83Â\82Ã\82¸ ,extends:Ã\83Â\83Ã\82¢Ã\83Â\82Ã\82Â\9dÃ\83Â\82Ã\82¯,precedes:Ã\83Â\83Ã\82¢Ã\83Â\82Ã\82Â\9dÃ\83Â\82Ã\82®,nbsp:Ã\83Â\82Ã\82±'
+ let &listchars = 'tab:Ã\83Â\83Ã\82Â\83Ã\83Â\82Ã\82Â\83Ã\83Â\83Ã\82Â\82Ã\83Â\82Ã\82¢Ã\83Â\83Ã\82Â\83Ã\83Â\82Ã\82Â\82Ã\83Â\83Ã\82Â\82Ã\83Â\82Ã\82Â\96Ã\83Â\83Ã\82Â\83Ã\83Â\82Ã\82Â\82Ã\83Â\83Ã\82Â\82Ã\83Â\82Ã\82¸ ,extends:Ã\83Â\83Ã\82Â\83Ã\83Â\82Ã\82Â\83Ã\83Â\83Ã\82Â\82Ã\83Â\82Ã\82¢Ã\83Â\83Ã\82Â\83Ã\83Â\82Ã\82Â\82Ã\83Â\83Ã\82Â\82Ã\83Â\82Ã\82Â\9dÃ\83Â\83Ã\82Â\83Ã\83Â\82Ã\82Â\82Ã\83Â\83Ã\82Â\82Ã\83Â\82Ã\82¯,precedes:Ã\83Â\83Ã\82Â\83Ã\83Â\82Ã\82Â\83Ã\83Â\83Ã\82Â\82Ã\83Â\82Ã\82¢Ã\83Â\83Ã\82Â\83Ã\83Â\82Ã\82Â\82Ã\83Â\83Ã\82Â\82Ã\83Â\82Ã\82Â\9dÃ\83Â\83Ã\82Â\83Ã\83Â\82Ã\82Â\82Ã\83Â\83Ã\82Â\82Ã\83Â\82Ã\82®,nbsp:Ã\83Â\83Ã\82Â\83Ã\83Â\82Ã\82Â\83Ã\83Â\83Ã\82Â\82Ã\83Â\82Ã\82Â\82Ã\83Â\83Ã\82Â\83Ã\83Â\82Ã\82Â\82Ã\83Â\82Ã\82±'
else
let &listchars = 'tab:> ,extends:>,precedes:<,nbsp:.'
endif
let &t_EI.="\e[1 q"
let &t_te.="\e[0 q"
+" make
+set makeprg=cmake
+" filename(line): error|warning|fatal error C0000: message
+set errorformat=\ %#%f(%l):\ %#%t%[A-z]%#\ %[A-Z\ ]%#%n:\ %m
+
" grep
set grepprg=ag\ --vimgrep\ --skip-vcs-ignores\ --path-to-ignore\ ~/.ignore\ --cpp\ --cc
set grepformat^=%f:%l:%c:%m " file:line:coloumn:message
" Packages
" ALE
-packadd! ale
+"packadd! ale
" Tagbar
packadd! tagbar
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
" Editorconfig
-packadd! editorconfig-vim
-let g:editorconfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
-let g:editorconfig_verbose = 1
-let g:editorconfig_core_mode = "python_builtin"
+"packadd! editorconfig-vim
+"let g:editorconfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
+"let g:editorconfig_verbose = 1
+"let g:editorconfig_core_mode = "python_builtin"
" CtrlP
-packadd! ctrlp.vim
-let g:ctrlp_map = '<Leader>p'
-let g:ctrlp_cmd = 'CtrlP'
-let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
+"packadd! ctrlp.vim
+"let g:ctrlp_map = '<Leader>p'
+"let g:ctrlp_cmd = 'CtrlP'
+"let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
"let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
-nnoremap <Leader>p :CtrlP<CR>
-nnoremap <Leader>b :CtrlPBuffer<CR>
-nnoremap <Leader>m :CtrlPMRU<CR>
+"nnoremap <Leader>p :CtrlP<CR>
+"nnoremap <Leader>b :CtrlPBuffer<CR>
+"nnoremap <Leader>m :CtrlPMRU<CR>
" matchit
packadd! matchit
" termdebug
-packadd! termdebug
+"packadd! termdebug
" shellmenu
-packadd! shellmenu
+"packadd! shellmenu
+
+" Async shell commands
+packadd asyncrun.vim
+let g:asyncrun_open = 8
+let g:asyncrun_status = "stopped"
+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
" Normal mode Mappings
nnoremap ; :
" Autocommands
if has('autocmd')
" Put these in an autocmd groups, so that we can delete them easily.
- augroup filetypes
- au!
- au bufnewfile,buffilepre,bufread *.md set filetype=markdown
- au bufnewfile,buffilepre,bufread *.gradle set filetype=groovy
- au bufnewfile,buffilepre,bufread *.json set filetype=json
- au bufnewfile,buffilepre,bufread *.yml set filetype=yaml
+ augroup filetypes
+ autocmd!
+ autocmd bufnewfile,buffilepre,bufread *.md set filetype=markdown
+ autocmd bufnewfile,buffilepre,bufread *.gradle set filetype=groovy
+ autocmd bufnewfile,buffilepre,bufread *.json set filetype=json
+ autocmd bufnewfile,buffilepre,bufread *.yml set filetype=yaml
augroup END
augroup saveall
- au!
- au focuslost * wall
+ autocmd!
+ autocmd focuslost * wall
augroup END
augroup numbers
- au!
- au bufenter,focusgained,insertleave * set relativenumber
- au bufleave,focuslost,insertenter * set norelativenumber
+ autocmd!
+ autocmd bufenter,focusgained,insertleave * set relativenumber
+ autocmd bufleave,focuslost,insertenter * set norelativenumber
augroup END
augroup vimrc
- au!
- au bufwritepost ~/.vim/gvimrc source %
- au bufwritepost ~/.vim/vimrc source %
- au bufwritepost ~/.vim/vimrc.local source %
+ autocmd!
+ autocmd bufwritepost ~/.vim/gvimrc source %
+ autocmd bufwritepost ~/.vim/vimrc source %
+ autocmd bufwritepost ~/.vim/vimrc.local source %
augroup END
+
+
endif
" local settings