Module: Vimmer

Defined in:
lib/vimmer.rb,
lib/vimmer/cli.rb,
lib/vimmer/version.rb,
lib/vimmer/settings.rb,
lib/vimmer/installers.rb,
lib/vimmer/installers/github.rb,
lib/vimmer/installers/vim_dot_org.rb

Defined Under Namespace

Modules: Installers Classes: CLI, InstallerNotFoundError, InvalidPathError, PluginNotFoundError, Settings

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.add_plugin(name, path) ⇒ Object



40
41
42
# File 'lib/vimmer.rb', line 40

def add_plugin(name, path)
  settings.add_plugin(name, path)
end

.bundle_pathObject



28
29
30
# File 'lib/vimmer.rb', line 28

def bundle_path
  settings[:bundle_path]
end

.plugin?(name) ⇒ Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/vimmer.rb', line 52

def plugin?(name)
  plugins.key?(name)
end

.pluginsObject



57
58
59
# File 'lib/vimmer.rb', line 57

def plugins
  settings.plugins
end

.remove_plugin(name) ⇒ Object



46
47
48
# File 'lib/vimmer.rb', line 46

def remove_plugin(name)
  settings.remove_plugin(name)
end

.settingsObject



34
35
36
# File 'lib/vimmer.rb', line 34

def settings
  @settings ||= Settings.new
end

.setupObject



63
64
65
66
# File 'lib/vimmer.rb', line 63

def setup
  settings.create_vimmer_home!
  settings.create_default_config_file!
end