mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated vim plugins
This commit is contained in:
@ -8,6 +8,8 @@ vimgodir=$(cd -P "$(dirname "$0")/.." > /dev/null && pwd)
|
||||
cd "$vimgodir"
|
||||
|
||||
docker build --tag vim-go-test .
|
||||
docker run --rm vim-go-test
|
||||
# seccomp=confined is required for dlv to run in a container, hence it's
|
||||
# required for vim-go's debug tests.
|
||||
docker run --rm --security-opt="seccomp=unconfined" vim-go-test
|
||||
|
||||
# vim:ts=2:sts=2:sw=2:et
|
||||
|
@ -91,6 +91,7 @@ fi
|
||||
# Make sure all Go tools and other dependencies are installed.
|
||||
echo "Installing Go binaries"
|
||||
export GOPATH=$installdir
|
||||
export GO111MODULE=off
|
||||
export PATH=${GOPATH}/bin:$PATH
|
||||
"$vimgodir/scripts/run-vim" $vim +':silent :GoUpdateBinaries' +':qa'
|
||||
|
||||
|
@ -23,6 +23,7 @@ fi
|
||||
|
||||
dir="/tmp/vim-go-test/$1-install"
|
||||
export GOPATH=$dir
|
||||
export GO111MODULE=off
|
||||
export PATH=${GOPATH}/bin:$PATH
|
||||
shift
|
||||
|
||||
|
@ -1,4 +1,9 @@
|
||||
" vint: -ProhibitSetNoCompatible
|
||||
|
||||
" don't spam the user when Vim is started in Vi compatibility mode
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
set nocompatible nomore shellslash encoding=utf-8 shortmess+=WIF
|
||||
lang mess C
|
||||
|
||||
@ -24,3 +29,9 @@ let s:report = execute('syntime report')
|
||||
execute ':e ' . fnameescape($RUNBENCH_OUT)
|
||||
call setline('.', split(s:report, '\n'))
|
||||
wq
|
||||
|
||||
" restore Vi compatibility settings
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: sw=2 ts=2 et
|
||||
|
@ -2,6 +2,11 @@
|
||||
" English.
|
||||
|
||||
" vint: -ProhibitSetNoCompatible
|
||||
|
||||
" don't spam the user when Vim is started in Vi compatibility mode
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
set nocompatible nomore shellslash encoding=utf-8 shortmess+=WIF
|
||||
lang mess C
|
||||
|
||||
@ -31,7 +36,8 @@ source %
|
||||
" cd into the folder of the test file.
|
||||
let s:cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
|
||||
let s:testfile = expand('%:t')
|
||||
execute s:cd . expand('%:p:h')
|
||||
let s:dir = expand('%:p:h')
|
||||
execute s:cd . s:dir
|
||||
|
||||
" Export root path to vim-go dir.
|
||||
let g:vim_go_root = fnamemodify(getcwd(), ':p')
|
||||
@ -64,6 +70,8 @@ for s:test in sort(s:tests)
|
||||
|
||||
" Restore GOPATH after each test.
|
||||
let $GOPATH = s:gopath
|
||||
" Restore the working directory after each test.
|
||||
execute s:cd . s:dir
|
||||
|
||||
let s:elapsed_time = substitute(reltimestr(reltime(s:started)), '^\s*\(.\{-}\)\s*$', '\1', '')
|
||||
let s:done += 1
|
||||
@ -108,4 +116,8 @@ silent! write
|
||||
" Our work here is done.
|
||||
qall!
|
||||
|
||||
" restore Vi compatibility settings
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim:ts=2:sts=2:sw=2:et
|
||||
|
Reference in New Issue
Block a user