-
Notifications
You must be signed in to change notification settings - Fork 64
Naming Rule
Alisue edited this page Sep 18, 2017
·
4 revisions
Module names should be CamelCase.
Namespaces should be separated by .
For example:
Data.String
Web.HTTP
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)
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.