diff --git a/README.md b/README.md index a7afd1d..6c9ebc3 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,8 @@ Nim support for vim and advanced support for neovim. Still in heavy development. ## Dependencies - Neovim (tested with 1.2) -- Vim (TODO) +- Vim (7.4) + - Async support with channels planned - Optional: [vim-operator-user](https://github.com/kana/vim-operator-user) for defining routine text object diff --git a/tests/rc.vim b/tests/rc.vim index dac6f32..16f49ae 100644 --- a/tests/rc.vim +++ b/tests/rc.vim @@ -1,3 +1,4 @@ +set nocompatible filetype off set rtp+=./plugins/vader.vim set rtp+=.. diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 5421ce5..c5f24a0 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -6,15 +6,18 @@ if [[ ! -d plugins ]]; then git clone https://github.com/baabelfish/vader.vim plugins/vader.vim fi -# Run tests -# Running test -nvim -u rc.vim -c 'Vader! tests/**/*.vader' -# nvim -u rc.vim -c 'Vader! tests/**/*.vader' > /dev/null -err=$? -if [ "$err" != "0" ]; then - cat report.log - exit 1 -else - echo "" - echo "Great success!" -fi +function testExecutable() { + echo "Testing $1" + $1 -u rc.vim -c 'Vader! tests/**/*.vader' + err=$? + if [ "$err" != "0" ]; then + cat report.log + exit 1 + else + echo "" + echo "Great success!" + fi +} + +testExecutable "nvim" +testExecutable "vim"