Vim: jump to top of build output log

This commit is contained in:
Michael Campagnaro 2016-08-07 03:39:32 -04:00
parent 8cfdd27674
commit d1c36f1aba

3
vimrc
View File

@ -161,7 +161,7 @@ function! RunBuildScript()
let l:current_buf = bufnr("%")
" Save current buffer in case there are unsaved changes
write
silent! wall
if l:existing_buf > 0
silent! exe l:existing_buf . " wincmd w"
@ -178,6 +178,7 @@ function! RunBuildScript()
" Output compile log into buffer
let l:output = system("./build")
call append(0, split(l:output, '\v\n'))
go
silent! exe l:existing_buf. " wincmd w"
endfunction