Basic syntax highlighting for Scilla, a safe-by-design smart contract language.
git clone https://github.com/edisonljh/vim-scilla.git ~/.vim/bundle/vim-scilla
Add the following line to your ~/.vimrc
:
Plugin 'edisonljh/vim-scilla'
If you are using ALE, you can enable scilla-checker to show errors right inside vim.
Here is how to enable it:
- Install ALE vim plugin
- Make
scilla-checker
executable available (https://github.com/Zilliqa/scilla#compiling-and-running) - Set STDLIB dir in vimrc:
let g:ale_scilla_checker_libdir = '<path>/stdlib'
- Set CHECKER in vimrc:
let g:ale_scilla_checker_executable='<path>/scilla-checker'
- Enable the linter in vimrc:
autocmd FileType scilla let b:ale_linters = ['checker']
- Open any scilla file and ensure checker is working:
:ALEInfo
Comment functionality is available through NERDCommenter. It's not natively supported on this plugin yet. PRs are welcome!
See LICENSE