Skip to content

Ditto plugin for Vim πŸ§‘β€πŸ’»

License

Notifications You must be signed in to change notification settings

ditto-lang/vim-ditto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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