aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorThomas Buckley-Houston2017-06-12 16:10:07 +0000
committerThomas Buckley-Houston2017-06-12 16:10:07 +0000
commit411609336b103e518e2f7d351dbcb7f818c5a865 (patch)
treeaf1634b051d44cb94366447a691064cd1da994be /spec
parent86e4f10b26be46b2160b344b48ab2776b54c0272 (diff)
Paste over selection / And <Alt-o> for normal mode
So when you paste something and there's an active selection of text then the selection is replaced by that which is pasted. Also, includes <Alt-o> for normal mode shortcut to `:`
Diffstat (limited to 'spec')
-rw-r--r--spec/novim_mode_spec.rb17
1 files changed, 16 insertions, 1 deletions
diff --git a/spec/novim_mode_spec.rb b/spec/novim_mode_spec.rb
index b960b10..0b99674 100644
--- a/spec/novim_mode_spec.rb
+++ b/spec/novim_mode_spec.rb
@@ -66,13 +66,28 @@ describe 'Basic editing' do
select me
EOF
- # Conventional behaviour shouldn't need the <End>?
type '<C-a>gone'
after <<-EOF
gone
EOF
end
+
+ specify 'paste over selection' do
+ before <<-EOF
+ cut me and paste over me
+ EOF
+
+ 7.times { type '<S-Right>' }
+ type '<C-x>'
+ 10.times { type '<Right>' }
+ 7.times { type '<S-Right>' }
+ type '<C-v>'
+
+ after <<-EOF
+ and paste cut me
+ EOF
+ end
end
describe 'Pane control' do