Method: Vimrunner::Client#edit!
- Defined in:
- lib/vimrunner/client.rb
#edit!(filename) ⇒ Object
Public: Edits the file filename with Vim using edit!.
Similar to #edit, only discards any changes to the current buffer.
Returns the Client instance.
179 180 181 182 183 |
# File 'lib/vimrunner/client.rb', line 179 def edit!(filename) file_path = Path.new(filename) command "edit! #{file_path}" self end |