Skip to content
Alisue edited this page Sep 18, 2017 · 4 revisions

Module names

Module names should be CamelCase. Namespaces should be separated by .

For example:

Data.String
Web.HTTP

File names

Files should be locate under the autoload/vital/__latest__ diectory. File names should be equal to the module name. The directory structure should follow the namespace of the module.

For example:

autoload/vital/__latest__/Data/String.vim (Module name: Data.String)
autoload/vital/__latest__/Web/HTTP.vim (Module name: Web.HTTP)

Function names

Use snake_case like:

Data.String.common_head

To make a private function, start the function name from _ then the function won't be exposed.

Clone this wiki locally