by Angel Leon. March 17, 2015;
Last update on December 14, 2023
Updated on February 27, 2023
Updated August 29, 2019.
| import Foundation | |
| fileprivate protocol Statelike { | |
| var stateMachine: StateMachine { get } | |
| func logIn() | |
| func logOut() | |
| } | |
| extension Statelike { | |
| func logIn() {} |
Let's say the plugin is at a GitHub URL https://github.com/manasthakur/foo.
First get the plugin by either cloning it (git clone https://github.com/manasthakur.foo.git) or simply downloading it as a zip (from its GitHub page).
Adding a plugin in Vim is equivalent to adding the plugin's code properly into its runtimepath (includes the $HOME/.vim directory by default).
For example, if the layout of a plugin foo is as follows:
foo/autoload/foo.vim
foo/plugin/foo.vim
| disabled_rules: # rule identifiers to exclude from running | |
| - variable_name | |
| - nesting | |
| - function_parameter_count | |
| opt_in_rules: # some rules are only opt-in | |
| - control_statement | |
| - empty_count | |
| - trailing_newline | |
| - colon | |
| - comma |