Module: Vim::Buffers
- Included in:
- Integration
- Defined in:
- lib/vim/buffers.rb
Instance Method Summary collapse
Instance Method Details
#buffers ⇒ Object
4 5 6 |
# File 'lib/vim/buffers.rb', line 4 def buffers @buffers ||= [ nil ] end |
#last_buffer ⇒ Object
12 13 14 |
# File 'lib/vim/buffers.rb', line 12 def last_buffer @buffers.length - 1 end |
#new_buffer(path = nil) ⇒ Object
7 8 9 10 |
# File 'lib/vim/buffers.rb', line 7 def new_buffer(path=nil) buffers << path buffers.length - 1 end |