nvim: Build with Ctrl+B, remove focus on start/end debugging
This commit is contained in:
parent
3977146d6d
commit
f82efcf67e
@ -303,13 +303,11 @@ command RemedyBGOpenFile call RemedyBGOpenFile()
|
|||||||
|
|
||||||
function! RemedyBGStartDebugging()
|
function! RemedyBGStartDebugging()
|
||||||
execute("!start remedybg start-debugging " . expand("%:p") . " " . line("."))
|
execute("!start remedybg start-debugging " . expand("%:p") . " " . line("."))
|
||||||
execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')")
|
|
||||||
endfunction
|
endfunction
|
||||||
command RemedyBGStartDebugging call RemedyBGStartDebugging()
|
command RemedyBGStartDebugging call RemedyBGStartDebugging()
|
||||||
|
|
||||||
function! RemedyBGStopDebugging()
|
function! RemedyBGStopDebugging()
|
||||||
execute("!start remedybg stop-debugging " . expand("%:p") . " " . line("."))
|
execute("!start remedybg stop-debugging " . expand("%:p") . " " . line("."))
|
||||||
execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')")
|
|
||||||
endfunction
|
endfunction
|
||||||
command RemedyBGStopDebugging call RemedyBGStopDebugging()
|
command RemedyBGStopDebugging call RemedyBGStopDebugging()
|
||||||
|
|
||||||
@ -409,10 +407,10 @@ set errorformat+=%\\%%(CTIME%\\)%\\@=%m " ctime.exe -stat
|
|||||||
let s:running_windows = has("win16") || has("win32") || has("win64")
|
let s:running_windows = has("win16") || has("win32") || has("win64")
|
||||||
if s:running_windows
|
if s:running_windows
|
||||||
set makeprg=build
|
set makeprg=build
|
||||||
nnoremap <f5> :Make ./build.bat<cr>
|
nnoremap <C-b> :Make ./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> :Make ./build.sh<cr>
|
nnoremap <C-b> :Make ./build.sh<cr>
|
||||||
set makeprg=./build.sh
|
set makeprg=./build.sh
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user