Sha256: eed4fcfc6893d1b03f6dac78c82fcffcfb614ab22aba48faa556aa5d0d86a95e
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
# Copyright (c) 2009 Michael Fellinger <m.fellinger@gmail.com> # # Description: # # Autosave every second when inactive and changes have been made. # # Usage: # # Put following line into your rc.rb # VER.plugin :autosave VER.startup_hook do VER.when_inactive_for 1000 do VER.buffers.each do |buffer| next if !buffer.filename || buffer.pristine? || buffer.persisted? buffer.save end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ver-2010.08 | config/plugin/autosave.rb |