Method: Vimrunner::Platform#vim

Defined in:
lib/vimrunner/platform.rb

#vimObject

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