Vim: jump to top of build output log
This commit is contained in:
parent
8cfdd27674
commit
d1c36f1aba
3
vimrc
3
vimrc
|
@ -161,7 +161,7 @@ function! RunBuildScript()
|
||||||
let l:current_buf = bufnr("%")
|
let l:current_buf = bufnr("%")
|
||||||
|
|
||||||
" Save current buffer in case there are unsaved changes
|
" Save current buffer in case there are unsaved changes
|
||||||
write
|
silent! wall
|
||||||
|
|
||||||
if l:existing_buf > 0
|
if l:existing_buf > 0
|
||||||
silent! exe l:existing_buf . " wincmd w"
|
silent! exe l:existing_buf . " wincmd w"
|
||||||
|
@ -178,6 +178,7 @@ function! RunBuildScript()
|
||||||
" Output compile log into buffer
|
" Output compile log into buffer
|
||||||
let l:output = system("./build")
|
let l:output = system("./build")
|
||||||
call append(0, split(l:output, '\v\n'))
|
call append(0, split(l:output, '\v\n'))
|
||||||
|
go
|
||||||
|
|
||||||
silent! exe l:existing_buf. " wincmd w"
|
silent! exe l:existing_buf. " wincmd w"
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in New Issue
Block a user