remi-vimilicious 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/vimilicious.rb +8 -0
  2. data/vimilicious.gemspec +1 -1
  3. metadata +1 -1
@@ -92,6 +92,7 @@ end
92
92
  # :ruby clear
93
93
  def clear
94
94
  cmd 'let kwbd_bn= bufnr("%")|enew|exe "bdel ".kwbd_bn|unlet kwbd_bn'
95
+ clear_buffer
95
96
  end
96
97
 
97
98
  # forcefully deletes the current buffer and clears the wholelayout
@@ -99,6 +100,13 @@ end
99
100
  # :ruby clear!
100
101
  def clear!
101
102
  cmd 'bd!'
103
+ clear_buffer
104
+ end
105
+
106
+ # deletes all lines in the current_buffer
107
+ def clear_buffer
108
+ exec 'gg'
109
+ current_buffer.length.times { current_buffer.delete(1) }
102
110
  end
103
111
 
104
112
  # append text to the end of the current_buffer
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "vimilicious"
3
- s.version = "0.1.3"
3
+ s.version = "0.1.4"
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - remi Taylor