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.
- data/lib/vimilicious.rb +8 -0
- data/vimilicious.gemspec +1 -1
- metadata +1 -1
data/lib/vimilicious.rb
CHANGED
@@ -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
|
data/vimilicious.gemspec
CHANGED