Module: ReadSource::VimSource
- Defined in:
- lib/read_source/vim_source.rb
Instance Method Summary collapse
Instance Method Details
#vim ⇒ Object
3 4 5 6 7 |
# File 'lib/read_source/vim_source.rb', line 3 def vim file, line_num = send :source_location read_only = !!/#{ENV["GEM_HOME"]}/.match(file) ? "-M" : "" exec("vim %s +%s %s" % [read_only, line_num, file]) if file end |