Skip to content

Commit 56d2d77

Browse files
committed
initial Vader support
1 parent cf54530 commit 56d2d77

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

test/simple.vader

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

0 commit comments

Comments
 (0)