Class: Utils::ConfigFile::Edit

Inherits:
BlockConfig show all
Defined in:
lib/utils/config_file.rb

Instance Method Summary collapse

Methods inherited from BlockConfig

config, inherited, #initialize, #to_ruby

Constructor Details

This class inherits a constructor from Utils::ConfigFile::BlockConfig

Instance Method Details

#vim_pathString

The vim_path method determines the path to the vim executable.

This method executes the which command to locate the vim executable in the system’s PATH and returns the resulting path after stripping any trailing whitespace.

Returns:

  • (String)

    the full path to the vim executable as determined by the which command



632
# File 'lib/utils/config_file.rb', line 632

config :vim_path do `which vim`.chomp end