Build in the right buffer
This commit is contained in:
parent
8914cd99b3
commit
47274bd334
12
init.vim
12
init.vim
|
@ -58,13 +58,13 @@ autocmd BufWritePre * :%s/\s\+$//e
|
||||||
|
|
||||||
" Compile on F12
|
" Compile on F12
|
||||||
if executable('mars')
|
if executable('mars')
|
||||||
nnoremap <silent><F12> :wa \| !mars<CR>
|
nnoremap <silent><F12> :wa \| !mars -p %:p<CR>
|
||||||
inoremap <silent><F12> <C-O>:wa \|!mars<CR>
|
inoremap <silent><F12> <C-O>:wa \|!mars -p %:p<CR>
|
||||||
vnoremap <silent><F12> :wa \|!mars<CR>
|
vnoremap <silent><F12> :wa \|!mars -p %:p<CR>
|
||||||
elseif executable('make')
|
elseif executable('make')
|
||||||
nnoremap <silent><F12> :wa \| !make<CR>
|
nnoremap <silent><F12> :wa \| !make -p %:p<CR>
|
||||||
inoremap <silent><F12> <C-O>:wa \|!make<CR>
|
inoremap <silent><F12> <C-O>:wa \|!make -p %:p<CR>
|
||||||
vnoremap <silent><F12> :wa \|!make<CR>
|
vnoremap <silent><F12> :wa \|!make -p %:p<CR>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Escape on F1
|
" Escape on F1
|
||||||
|
|
Loading…
Reference in New Issue