edison0xyz / vim-scilla

Scilla vim plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-scilla

Basic syntax highlighting for Scilla, a safe-by-design smart contract language.

Installation

Pathogen

git clone https://github.com/edisonljh/vim-scilla.git ~/.vim/bundle/vim-scilla

Vundle

Add the following line to your ~/.vimrc:

Plugin 'edisonljh/vim-scilla'

Syntax checker with ALE

If you are using ALE, you can enable scilla-checker to show errors right inside vim.

Here is how to enable it:

  1. Install ALE vim plugin
  2. Make scilla-checker executable available (https://github.com/Zilliqa/scilla#compiling-and-running)
  3. Set STDLIB dir in vimrc: let g:ale_scilla_checker_libdir = '<path>/stdlib'
  4. Set CHECKER in vimrc: let g:ale_scilla_checker_executable='<path>/scilla-checker'
  5. Enable the linter in vimrc: autocmd FileType scilla let b:ale_linters = ['checker']
  6. Open any scilla file and ensure checker is working: :ALEInfo

Commenting

Comment functionality is available through NERDCommenter. It's not natively supported on this plugin yet. PRs are welcome!

License

See LICENSE

About

Scilla vim plugin

License:GNU General Public License v3.0


Languages

Language:Vim Script 100.0%