Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Latest commit

Β 

History

History
54 lines (39 loc) Β· 1.79 KB

README.md

File metadata and controls

54 lines (39 loc) Β· 1.79 KB

vim-ditto

CI

Provides basic support for .ditto files.

For richer syntax highlighting, there is a tree-sitter grammar available over at πŸ‘‰ tree-sitter-ditto.

Installing

  • 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'

Developing

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