From 0a087955ce03eeddda06f1a3ad3c3e5e65cc16e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 13 Jan 2017 19:33:17 +0100 Subject: test: change existing tests to avoid substitute command --- vim/golf/4e31627b74ab580001000007/1.disabled | 22 ++++++++++++++++++++++ vim/golf/4e31627b74ab580001000007/1.keys | 22 ---------------------- vim/registers/command.keys | 4 ++-- vis/prompt/history.keys | 2 +- 4 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 vim/golf/4e31627b74ab580001000007/1.disabled delete mode 100644 vim/golf/4e31627b74ab580001000007/1.keys diff --git a/vim/golf/4e31627b74ab580001000007/1.disabled b/vim/golf/4e31627b74ab580001000007/1.disabled new file mode 100644 index 0000000..c53b4ca --- /dev/null +++ b/vim/golf/4e31627b74ab580001000007/1.disabled @@ -0,0 +1,22 @@ +dd +ipublic +:%s,\$this->,,g /* we use , as delimiter because // interferes with the CPP */ +:%s,\$,,g +:%s,private var,private double var, +/sqrt +iMath. +gg +/function +dw +n +cwvoid +n +. +n +cwdouble +gg +/val +idouble /* in vim moves the cursor 1 cell back, hence 2n will not do the right thing */ +fv /* accounts for this cursor is now at the start of "val" */ +2n. +Gdd diff --git a/vim/golf/4e31627b74ab580001000007/1.keys b/vim/golf/4e31627b74ab580001000007/1.keys deleted file mode 100644 index c53b4ca..0000000 --- a/vim/golf/4e31627b74ab580001000007/1.keys +++ /dev/null @@ -1,22 +0,0 @@ -dd -ipublic -:%s,\$this->,,g /* we use , as delimiter because // interferes with the CPP */ -:%s,\$,,g -:%s,private var,private double var, -/sqrt -iMath. -gg -/function -dw -n -cwvoid -n -. -n -cwdouble -gg -/val -idouble /* in vim moves the cursor 1 cell back, hence 2n will not do the right thing */ -fv /* accounts for this cursor is now at the start of "val" */ -2n. -Gdd diff --git a/vim/registers/command.keys b/vim/registers/command.keys index 1dafa45..4150066 100644 --- a/vim/registers/command.keys +++ b/vim/registers/command.keys @@ -1,4 +1,4 @@ -:s,command,COMMAND,g -o: +:+-d +O: j @: diff --git a/vis/prompt/history.keys b/vis/prompt/history.keys index 15bc331..4faa765 100644 --- a/vis/prompt/history.keys +++ b/vis/prompt/history.keys @@ -1,4 +1,4 @@ -:+-s/line/word/ /* replace something on first line */ +:-0+0x/line/c/word/ /* replace something on first line */ :2l /* select second line */ : /* repeat replacement */ :e /* simulate a typo on the command line */ -- cgit v1.2.3