File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ language : vim
2+
3+ before_script : |
4+ git clone https://github.com/junegunn/vader.vim.git
5+
6+ script : |
7+ vim -Nu <(cat << VIMRC
8+ filetype off
9+ set rtp+=vader.vim
10+ set rtp+=.
11+ set rtp+=after
12+ filetype plugin indent on
13+ VIMRC) -c 'Vader! test/*' > /dev/null
Original file line number Diff line number Diff line change 1+ Given ():
2+ Hello
3+
4+ Execute python ( check Python support ):
5+ import os
6+ import vim
7+ from vim import current, vars
8+ vim.command('normal! yy2p')
9+ current.buffer.append(os.path.basename(vars['vader_file']))
10+
11+ Expect:
12+ Hello
13+ Hello
14+ Hello
15+ simple.vader
16+
17+
18+ Execute python (check IPython import):
19+ import vim
20+ from vim import current, vars
21+ import IPython
22+ current.buffer.append(str(IPython.version_info[0] >= 1))
23+
24+ Expect:
25+ Hello
26+ True
27+
28+ Execute python (check vim_ipython import):
29+ import vim
30+ vim.command("set ft=python")
31+ vim.command("IPython")
32+ import vim_ipython
33+ current.buffer.append("vim_ipython loaded")
34+
35+ Expect:
36+ Hello
37+ vim_ipython loaded
You can’t perform that action at this time.
0 commit comments