Provides basic support for .ditto
files.
For richer syntax highlighting, there is a tree-sitter grammar available over at 👉 tree-sitter-ditto.
- Vim 8 packages
git clone https://github.com/ditto-lang/vim-ditto.git ~/.vim/pack/plugins/start/vim-ditto
- Neovim packages
git clone https://github.com/ditto-lang/vim-ditto.git ~/.local/share/nvim/site/pack/plugins/start/vim-ditto
- Pathogen
git clone https://github.com/ditto-lang/vim-ditto.git ~/.vim/bundle/vim-ditto
- vim-plug
Plug 'ditto-lang/vim-ditto'
- Vundle
Plugin 'ditto-lang/vim-ditto'
I find it helpful to start up vim with no other plugins loaded, which you can do like so:
vim -u <(echo set rtp+=.)
To generate/run the tests you'll need testing.vim installed.
Clone the repo and add the root tvim
script to your $PATH
.
Run the tests with:
tvim test test/*_test.vim
And (re-)generate the tests with:
for f in test/*.ditto; do tvim gen-syn $f > test/$(basename $f .ditto)_test.vim; done