Pull request Compare This branch is 3 commits ahead, 8 commits behind nelstrom:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
profiling
samples
README.md
folding.vim

README.md

Running the tests

Thanks to Kana Natsuno for helping me to test drive this code using vspec.

test/folding.vim contains tests written in the vspec format. Here are the barebones instructions for executing the tests, assuming that vspec and markdown-folding plugins are installed as follows:

.vim/
  bundle/
    vspec/
      bin/
        vspec
    markdown-folding/
      test/
        folding.vim
    vim-markdown/
      ftdetect/
      ftplugin/
      syntax/

You can run the tests as follows:

cd .vim/bundle/markdown-folding
../vspec/bin/vspec ../vspec ../vim-markdown . test/folding.vim

Execute the tests from inside Vim with this quick-and-dirty mapping (assumes working directory to be .vim/bundle/markdown-folding):

nnoremap <leader>r :wa <bar> ! ../vspec/bin/vspec ../vspec/ . test/folding.vim<CR>