Class: Utils::ConfigFile::Edit

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

Overview

A configuration class for editor settings.

This class manages the configuration options related to editing operations, specifically focusing on Vim editor integration. It provides functionality to configure the path to the Vim executable and default arguments used when invoking the editor.

Instance Method Summary collapse

Methods inherited from BlockConfig

config, inherited, #initialize, lazy_config, #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



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

config :vim_path do `which vim`.chomp end