Actually add asyncrun

This commit is contained in:
doyle 2020-10-20 13:10:40 +11:00
parent 6f562f6035
commit 47c76da763

View File

@ -15,12 +15,12 @@ endif
" {on} Means to lazy-load when that command is invoked " {on} Means to lazy-load when that command is invoked
Plug 'https://github.com/ervandew/supertab' Plug 'https://github.com/ervandew/supertab'
Plug 'https://github.com/scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'https://github.com/scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'https://github.com/tpope/vim-dispatch'
Plug 'https://github.com/tpope/vim-fugitive' Plug 'https://github.com/tpope/vim-fugitive'
Plug 'https://github.com/bfrg/vim-cpp-modern' Plug 'https://github.com/bfrg/vim-cpp-modern'
Plug 'https://github.com/junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'skywind3000/asyncrun'
Plug 'https://github.com/junegunn/fzf.vim' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
" Themes " Themes
Plug 'https://github.com/tomasr/molokai' Plug 'https://github.com/tomasr/molokai'
@ -226,16 +226,16 @@ set errorformat+=%\\%%(CTIME%\\)%\\@=%m " ctime.exe -stat
if s:running_windows if s:running_windows
set makeprg=build set makeprg=build
nnoremap <A-r> :!start cmd /c run<CR> nnoremap <f5> :AsyncRun ./build.bat<cr>
else else
" Set vim terminal to enter normal mode using escape like normal vim behaviour " Set vim terminal to enter normal mode using escape like normal vim behaviour
tnoremap <Esc> <C-\><C-n> tnoremap <Esc> <C-\><C-n>
nnoremap <f5> :AsyncRun ./build.sh<cr>
set makeprg=./build.sh set makeprg=./build.sh
endif endif
"Go to next error "Go to next error
"Go to previous error "Go to previous error
nnoremap <f5> :Make<cr>
nnoremap <A-n> :cn<CR> nnoremap <A-n> :cn<CR>
nnoremap <A-p> :cp<CR> nnoremap <A-p> :cp<CR>