remi-vimilicious 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/vimilicious.rb +3 -3
  2. data/vimilicious.gemspec +1 -1
  3. metadata +1 -1
data/lib/vimilicious.rb CHANGED
@@ -87,14 +87,14 @@ def set_current_line text
87
87
  current_buffer[ current_buffer.line_number ] = text.to_s
88
88
  end
89
89
 
90
- # deletes the current buffer (closes the file)
90
+ # deletes the current buffer (closes the file) but keeps the current layout
91
91
  #
92
92
  # :ruby clear
93
93
  def clear
94
- cmd 'bd'
94
+ cmd 'let kwbd_bn= bufnr("%")|enew|exe "bdel ".kwbd_bn|unlet kwbd_bn'
95
95
  end
96
96
 
97
- # forcefully deletes the current buffer (closes the file) (unsaved changes will be lost!)
97
+ # forcefully deletes the current buffer and clears the wholelayout
98
98
  #
99
99
  # :ruby clear!
100
100
  def clear!
data/vimilicious.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "vimilicious"
3
- s.version = "0.1.2"
3
+ s.version = "0.1.3"
4
4
  s.date = "2008-06-15"
5
5
  s.summary = "vim-ruby library for making vim easy"
6
6
  s.email = "remi@remitaylor.com"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remi-vimilicious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - remi Taylor