mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Add startup tester for #25
This commit is contained in:
24
test/startup.sh
Executable file
24
test/startup.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
VISUAL=${VISUAL:-vim}
|
||||
|
||||
cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd
|
||||
|
||||
dir='profile'
|
||||
mkdir -vp "$dir"
|
||||
|
||||
file="$dir/startup-$(date +%Y-%m-%d.%H:%M:%S)"
|
||||
file1="$file-1.log"
|
||||
file2="$file-2.log"
|
||||
|
||||
"$VISUAL" -u vimrc-startup --startuptime "$file1"
|
||||
|
||||
echo 'g:matchup_delim_start_plain=0'
|
||||
grep matchup "$file1"
|
||||
|
||||
export TEST_PLAIN=1
|
||||
"$VISUAL" -u vimrc-startup --startuptime "$file2"
|
||||
|
||||
echo 'g:matchup_delim_start_plain=1'
|
||||
grep matchup "$file2"
|
||||
|
||||
13
test/vimrc-startup
Normal file
13
test/vimrc-startup
Normal file
@@ -0,0 +1,13 @@
|
||||
set nocompatible
|
||||
|
||||
let &rtp = '~/.vim/bundle/vim-matchup,' . &rtp
|
||||
let &rtp .= ',~/.vim/bundle/vim-matchup/after'
|
||||
|
||||
let g:matchup_delim_start_plaintext = !!$TEST_PLAIN
|
||||
|
||||
filetype plugin indent on
|
||||
syntax enable
|
||||
|
||||
autocmd BufWinEnter * put!=execute('MatchupShowTimes')|set nomodified
|
||||
nnoremap q :<c-u>quit<cr>
|
||||
|
||||
Reference in New Issue
Block a user