summaryrefslogtreecommitdiff
path: root/vis
diff options
context:
space:
mode:
Diffstat (limited to 'vis')
-rw-r--r--vis/prompt/history.in3
-rw-r--r--vis/prompt/history.keys6
-rw-r--r--vis/prompt/history.ref3
3 files changed, 12 insertions, 0 deletions
diff --git a/vis/prompt/history.in b/vis/prompt/history.in
new file mode 100644
index 0000000..a92d664
--- /dev/null
+++ b/vis/prompt/history.in
@@ -0,0 +1,3 @@
+line 1
+line 2
+line 3
diff --git a/vis/prompt/history.keys b/vis/prompt/history.keys
new file mode 100644
index 0000000..15bc331
--- /dev/null
+++ b/vis/prompt/history.keys
@@ -0,0 +1,6 @@
+:+-s/line/word/<Enter> /* replace something on first line */
+:2<Enter>l /* select second line */
+:<Up><Up><Enter> /* repeat replacement */
+:e<Backspace><Backspace> /* simulate a typo on the command line */
+:3<Enter>l /* select third line */
+:<Up><Up><Enter> /* repeat replacement */
diff --git a/vis/prompt/history.ref b/vis/prompt/history.ref
new file mode 100644
index 0000000..7d45533
--- /dev/null
+++ b/vis/prompt/history.ref
@@ -0,0 +1,3 @@
+word 1
+word 2
+word 3