Module: Vimrunner::Platform
Overview
Instance Method Summary collapse
-
#gvim ⇒ Object
Public: Looks for a GUI Vim executable that’s suitable for the current platform.
-
#vim ⇒ Object
Public: Looks for a Vim executable that’s suitable for the current platform.
Instance Method Details
#gvim ⇒ Object
Public: Looks for a GUI Vim executable that’s suitable for the current platform.
Returns the String Vim executable. Raises NoSuitableVimError if no suitable Vim can be found.
33 34 35 |
# File 'lib/vimrunner/platform.rb', line 33 def gvim gvims.find { |gvim| suitable?(gvim) } or raise NoSuitableVimError end |
#vim ⇒ Object
Public: Looks for a Vim executable that’s suitable for the current platform. Also attempts to find an appropriate GUI vim if terminal ones are unsuitable.
Returns the String Vim executable. Raises NoSuitableVimError if no suitable Vim can be found.
24 25 26 |
# File 'lib/vimrunner/platform.rb', line 24 def vim vims.find { |vim| suitable?(vim) } or raise NoSuitableVimError end |