Build in the right buffer

This commit is contained in:
Thomas Forgione 2019-06-12 15:07:10 +02:00
parent 8914cd99b3
commit 47274bd334
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 6 additions and 6 deletions

View File

@ -58,13 +58,13 @@ autocmd BufWritePre * :%s/\s\+$//e
" Compile on F12
if executable('mars')
nnoremap <silent><F12> :wa \| !mars<CR>
inoremap <silent><F12> <C-O>:wa \|!mars<CR>
vnoremap <silent><F12> :wa \|!mars<CR>
nnoremap <silent><F12> :wa \| !mars -p %:p<CR>
inoremap <silent><F12> <C-O>:wa \|!mars -p %:p<CR>
vnoremap <silent><F12> :wa \|!mars -p %:p<CR>
elseif executable('make')
nnoremap <silent><F12> :wa \| !make<CR>
inoremap <silent><F12> <C-O>:wa \|!make<CR>
vnoremap <silent><F12> :wa \|!make<CR>
nnoremap <silent><F12> :wa \| !make -p %:p<CR>
inoremap <silent><F12> <C-O>:wa \|!make -p %:p<CR>
vnoremap <silent><F12> :wa \|!make -p %:p<CR>
endif
" Escape on F1