aboutsummaryrefslogtreecommitdiff
path: root/vim/prompt
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-19 14:10:13 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-19 14:10:13 +0200
commit2e102a11afe9b256f0f9cf5391faf445fd40430a (patch)
treefcf8f6f4e2b7832bed9c380bf49bcc491ca06292 /vim/prompt
downloadvis-2e102a11afe9b256f0f9cf5391faf445fd40430a.tar.gz
vis-2e102a11afe9b256f0f9cf5391faf445fd40430a.tar.xz
Initial import of test branch from vis repository
Diffstat (limited to 'vim/prompt')
-rw-r--r--vim/prompt/history.in3
-rw-r--r--vim/prompt/history.keys6
2 files changed, 9 insertions, 0 deletions
diff --git a/vim/prompt/history.in b/vim/prompt/history.in
new file mode 100644
index 0000000..a92d664
--- /dev/null
+++ b/vim/prompt/history.in
@@ -0,0 +1,3 @@
+line 1
+line 2
+line 3
diff --git a/vim/prompt/history.keys b/vim/prompt/history.keys
new file mode 100644
index 0000000..da0b6ac
--- /dev/null
+++ b/vim/prompt/history.keys
@@ -0,0 +1,6 @@
+:+-s/line/word/<Enter> /* replace something on first line */
+:2<Enter> /* select second line */
+:<Up><Up><Enter> /* repeat replacement */
+:e<Backspace><Backspace> /* simulate a typo on the command line */
+:3<Enter> /* select third line */
+:<Up><Up><Enter> /* repeat replacement */