aboutsummaryrefslogtreecommitdiff
path: root/spec/novim_mode_spec.rb
diff options
context:
space:
mode:
authorThomas Buckley-Houston2022-05-11 15:01:35 +0000
committerThomas Buckley-Houston2022-05-11 15:01:35 +0000
commitcf041e18f46d95de44ae61dac4785fea68a6a21b (patch)
tree13d83f1a4188a12a5c926ba8a0e25fba98c46f5c /spec/novim_mode_spec.rb
parente3f89438582c12b4d058dd7752c294ad6bb33fac (diff)
Allow indentation to be repeated
Diffstat (limited to 'spec/novim_mode_spec.rb')
-rw-r--r--spec/novim_mode_spec.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/novim_mode_spec.rb b/spec/novim_mode_spec.rb
index c784772..d513d13 100644
--- a/spec/novim_mode_spec.rb
+++ b/spec/novim_mode_spec.rb
@@ -111,6 +111,31 @@ describe 'Selecting' do
EOF
end
+ specify 'ALT+] indents' do
+ initial <<-EOF
+ a line of text
+ EOF
+
+ type '<S-End>'
+ type '<M-]>'
+ type '<M-]>'
+
+ final_with_indents "\t\ta line of text\n"
+ end
+
+ specify 'Shift-Tab or ALT+[ indents' do
+ initial <<-EOF
+ a line of text
+ EOF
+
+ type '<S-End>'
+ type '<M-]>'
+ type '<M-]>'
+ type '<S-Tab>'
+
+ final_with_indents "\ta line of text\n"
+ end
+
specify 'CTRL+D selects the word under the cursor' do
initial <<-EOF
a line of text