AndrewRadev / splitjoin.vim

Switch between single-line and multiline forms of code
http://www.vim.org/scripts/script.php?script_id=3613
MIT License
1.93k stars 90 forks source link

Feature request: Add solidity support #186

Open otavioschwanck opened 2 years ago

otavioschwanck commented 2 years ago

Would be nice to have, its very similar to vanilla JS

AndrewRadev commented 2 years ago

Could you share more details? What filetype should I use to enable support? Is there something built-in, or do you use some external plugin for filetype support (syntax, indent, etc)? If you can share that, I could try sourcing the javascript logic in that filetype.

You could also try that on your side to see how well it works, you'd need to create the file ~/.vim/filetype/<solidity's filetype>.vim that contains runtime ftplugin/javascript/splitjoin.vim.