vim-script
Installation
SKILL.md
Google Vim Script Style Guide
Official Google Vim script coding standards for consistent plugin development.
Golden Rules
- Use
scriptencoding utf-8— declare encoding at top of every file - Prefix plugin functions — avoid namespace collisions with other plugins
- Use
aborton functions — fail fast on errors instead of silently continuing - Check feature availability — use
has('feature')before using features - Avoid global variables — use script-local
s:instead ofg:internally - Document all commands — help users understand usage
- Test on multiple Vim versions — ensure broad compatibility