compact.vim – Vim/Neovim Support for Compact
compact.vim provides syntax highlighting and editor support for the Compact smart contract language (Midnight network) in Vim and Neovim.
Features
- Syntax highlighting for
.compactfiles (regex-based for Vim, tree-sitter for Neovim) - Filetype detection – automatic recognition of
.compactfiles - Smart indentation – context-aware indentation for blocks and functions
- Comment support – single-line (
//) and block comments (/* */)
Installation
Works with all popular plugin managers:
lazy.nvim
{ "1NickPappas/compact.vim", ft = "compact" }
vim-plug
Plug '1NickPappas/compact.vim'
Native (Vim 8+ / Neovim)
git clone https://github.com/1NickPappas/compact.vim \
~/.local/share/nvim/site/pack/plugins/start/compact.vim
Links
GitHub: https://github.com/1NickPappas/compact.vim
Note: This is an experimental project developed in my personal free time for educational purposes. Any feedback, suggestions, or contributions are greatly appreciated!