]> git.zndr.dk Git - dotfiles.git/commitdiff
Add asyncrun to vim
authorJannik Zander <59698@grundfos.com>
Fri, 13 Jul 2018 15:26:01 +0000 (17:26 +0200)
committerJannik Zander <59698@grundfos.com>
Fri, 13 Jul 2018 15:26:01 +0000 (17:26 +0200)
.bash_aliases
.gitmodules
.vim/pack/github/opt/asyncrun.vim [new submodule]
.vim/vimrc

index 75bac9afedebd243241af8379bbf412f7eaf4ee0..13381cebb95a23ad37a9f6dc76dce60570b2efc7 100644 (file)
@@ -34,6 +34,7 @@ alias rd='rmdir'
 alias h='history'
 alias e='ranger-cd'
 alias o='rifle'
+alias c='clear'
 alias open='xdg-open &>/dev/null'
 alias info='info --vi-keys'
 alias ag='ag --path-to-ignore=$HOME/.ignore --skip-vcs-ignores'
index 9d7f377f3c1945b7904843a137ae70726ead79bb..f354094d267729d54e9b4b0c67c95d64af1f8fb4 100644 (file)
@@ -46,3 +46,6 @@
 [submodule ".vim/pack/github/opt/matchit"]
        path = .vim/pack/github/opt/matchit
        url = https://github.com/tmhedberg/matchit.git
+[submodule ".vim/pack/github/opt/asyncrun.vim"]
+       path = .vim/pack/github/opt/asyncrun.vim
+       url = https://github.com/skywind3000/asyncrun.vim.git
diff --git a/.vim/pack/github/opt/asyncrun.vim b/.vim/pack/github/opt/asyncrun.vim
new file mode 160000 (submodule)
index 0000000..a81b997
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit a81b9972337c61a28786e71ca87e84fa6a756ec7
index 92928f8e5bbc10172f2d0ecf28dccf2efb5d44da..6d9fc3cf08d028a8a4c29215e082757391d8b5be 100644 (file)
@@ -99,7 +99,7 @@ highlight linenr ctermfg=grey
 " 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
@@ -109,6 +109,11 @@ let &t_SI.="\e[5 q"
 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
@@ -122,7 +127,7 @@ let g:netrw_sort_sequence = '[\/]$,*'
 " Packages
 
 " ALE
-packadd! ale
+"packadd! ale
 
 " Tagbar
 packadd! tagbar
@@ -148,30 +153,40 @@ let g:airline#extensions#tabline#enabled = 1
 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 ;                  :
@@ -203,31 +218,33 @@ tnoremap <C-l>              <C-\><C-n><C-w>l
 " 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