From 47274bd334964389f24106585f8e19d92083c0ad Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 12 Jun 2019 15:07:10 +0200 Subject: [PATCH] Build in the right buffer --- init.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/init.vim b/init.vim index 7def44a..a69e640 100644 --- a/init.vim +++ b/init.vim @@ -58,13 +58,13 @@ autocmd BufWritePre * :%s/\s\+$//e " Compile on F12 if executable('mars') - nnoremap :wa \| !mars - inoremap :wa \|!mars - vnoremap :wa \|!mars + nnoremap :wa \| !mars -p %:p + inoremap :wa \|!mars -p %:p + vnoremap :wa \|!mars -p %:p elseif executable('make') - nnoremap :wa \| !make - inoremap :wa \|!make - vnoremap :wa \|!make + nnoremap :wa \| !make -p %:p + inoremap :wa \|!make -p %:p + vnoremap :wa \|!make -p %:p endif " Escape on F1