Yet another maintained syntax Solidity, the smart contract programming language for Ethereum.
Heavily inspired by thesis/vim-solidity
.
- Add support for some missing Solidity features
unchecked { ... }
blocksreceive
andfallback
functions- Numeric separators
- Improve
import
syntax highlighting - Improve
pragma
syntax highlighting - Use heuristic for user-defined types
- Use saner highlights for
contract
,interface
,library
andstruct
- Highlight function and event names on definition
- Use special colors for Solidity global variables and builtin functions
- Folding is not working properly in all cases.
Add the following line to your ~/.vimrc
:
Plug 'thesis/vim-solidity'
Add the following line to your ~/.vimrc
:
Plugin 'thesis/vim-solidity'
Run the following command:
git clone https://github.com/hbarcelost/vim-solidity.git ~/.vim/bundle/vim-solidity
Copy all of the files manually into your ~/.vim
.
augroup solidity_folding
au!
au FileType solidity setlocal foldmethod=syntax
augroup END
Will enable Solidity code-folding based on the included syntax file. This might have an impact on editing performance.