aboutsummaryrefslogtreecommitdiff
path: root/test/vim/operators/replace
diff options
context:
space:
mode:
authorRandy Palamar <randy@rnpnr.xyz>2024-05-21 19:53:22 -0600
committerRandy Palamar <randy@rnpnr.xyz>2024-05-21 19:53:22 -0600
commitb7074021b7bfb0932b889b9560dd22df31cef818 (patch)
tree0295b18de8fb8ea5289cbda95675687ae06025ff /test/vim/operators/replace
parentb7f8018a00be930e3f2b864949aec1f91291309c (diff)
parentefafa3c178268a4149fc3e432bc1174a013c16de (diff)
downloadvis-b7074021b7bfb0932b889b9560dd22df31cef818.tar.gz
vis-b7074021b7bfb0932b889b9560dd22df31cef818.tar.xz
Merge vis-tests into test directory
Going forward all tests should be submitted here directly.
Diffstat (limited to 'test/vim/operators/replace')
-rw-r--r--test/vim/operators/replace/replace.in5
-rw-r--r--test/vim/operators/replace/replace.keys10
2 files changed, 15 insertions, 0 deletions
diff --git a/test/vim/operators/replace/replace.in b/test/vim/operators/replace/replace.in
new file mode 100644
index 0000000..0b61652
--- /dev/null
+++ b/test/vim/operators/replace/replace.in
@@ -0,0 +1,5 @@
+int foo() {
+ /* --- --- */
+ return 42;
+ /* --- --- */
+}
diff --git a/test/vim/operators/replace/replace.keys b/test/vim/operators/replace/replace.keys
new file mode 100644
index 0000000..ef8b57f
--- /dev/null
+++ b/test/vim/operators/replace/replace.keys
@@ -0,0 +1,10 @@
+t{r<Enter> /* replace space with new line */
+/---<Enter>
+3r= /* replace --- with === */
+n /* advance to next match */
+. /* repeat */
+r<Escape> /* cancel, should not alter text */
+n /* advance to next match */
+v2e /* select something in visual mode */
+r<Escape> /* cancel, should not alter text */
+r= /* replace selection */