Sha256: 701f9d352b6267f2ee97d1aa4a072043a1af684c25f06bcf220e0e45a92f9b44
Contents?: true
Size: 399 Bytes
Versions: 1
Compression:
Stored size: 399 Bytes
Contents
# TODO: Save irb history if in irb session. module ReadSource module VimSource def vim servername=nil file, line_num = send :source_location read_only = !!/#{ENV["GEM_HOME"]}/.match(file) ? "-M" : "" remote = "#{('--servername ' + servername.to_s) if servername} --remote-silent" exec("vim #{remote} %s +%s %s" % [read_only, line_num, file]) if file end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
read_source-0.2.3 | lib/read_source/vim_source.rb |