Documentation should include sufficient context, practical examples, and helpful hints to make it truly useful for developers. Avoid assuming users have background knowledge - explain concepts, provide examples, and mention related functionality.
Documentation should include sufficient context, practical examples, and helpful hints to make it truly useful for developers. Avoid assuming users have background knowledge - explain concepts, provide examples, and mention related functionality.
Key practices:
:EditQuery <tab>
completes injected language names”)Example of good contextual documentation:
:restart[!] [+cmd] *:restart*
Restart Nvim. This fails when changes have been made.
Use :confirm restart to override.
Examples:
:restart +PluginUpdate " Restart and run command
:confirm restart " Restart with change confirmation
This approach transforms documentation from mere reference material into genuinely helpful guidance that reduces the learning curve for users.
Enter the URL of a public GitHub repository