File tree Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,38 @@ It reminds you to use alternative and better keys for increased productivity and
1010
1111![ vim-kaizen example in Vim editor] ( .example.png )
1212
13+ Vim commands and their alternatives:
14+
15+ | Command | Alternative |
16+ | -------- | ----------- |
17+ | d$ | D |
18+ | y$ | Y |
19+ | ggVG | yg |
20+ | cc | S |
21+ | xi | s |
22+ | cl | s |
23+ | dwi | cw |
24+ | dsi | cs |
25+ | dpi | cp |
26+ | d2wi | c2w |
27+ | d3wi | c3w |
28+ | ⬅️ | h |
29+ | ➡️ | l |
30+ | ⬆️ | k |
31+ | ⬇️ | j |
32+ | $a | A |
33+ | ^o | o |
34+ | ca) | cab |
35+ | ca) | cab |
36+ | ci) | cib |
37+ | ci) | cib |
38+ | ca( | cab |
39+ | ca( | cab |
40+ | ci( | cib |
41+ | ^i | I |
42+ | $a | A |
43+ | j^ | + |
44+
1345## Installation
1446
1547#### ` vim-plug `
Original file line number Diff line number Diff line change 11function VimKaizen (pat , alt )
2- local txt1 = string.format (' You entered "%s", which is an anti-pattern .' , pat )
2+ local txt1 = string.format (' You entered "%s".' , pat )
33 local txt2 = string.format (' Consider using "%s" from now on.' , alt )
44 local txt3 = ' Press "q" or ESC to close window.'
55 local txt4 = ' '
@@ -35,7 +35,10 @@ local vimKaizenPatterns = {
3535 {' n' , ' ggVG' , ' yG' },
3636 {' n' , ' cc' , ' S' },
3737 {' n' , ' xi' , ' s' },
38+ {' n' , ' cl' , ' s' },
3839 {' n' , ' dwi' , ' cw' },
40+ {' n' , ' dsi' , ' cs' },
41+ {' n' , ' dpi' , ' cp' },
3942 {' n' , ' d2wi' , ' c2w' },
4043 {' n' , ' d3wi' , ' c3w' },
4144 {' ' , ' <Right>' , ' h' },
@@ -44,6 +47,16 @@ local vimKaizenPatterns = {
4447 {' ' , ' <Down>' , ' j' },
4548 {' n' , ' $a' , ' A' },
4649 {' n' , ' ^o' , ' o' },
50+ {' n' , ' ca)' ,' cab' },
51+ {' n' , ' ca)' ,' cab' },
52+ {' n' , ' ci)' ,' cib' },
53+ {' n' , ' ci)' ,' cib' },
54+ {' n' , ' ca(' ,' cab' },
55+ {' n' , ' ca(' ,' cab' },
56+ {' n' , ' ci(' ,' cib' },
57+ {' n' , ' ^i' , ' I' },
58+ {' n' , ' $a' , ' A' },
59+ {' n' , ' j^' , ' +' },
4760}
4861
4962for _ , tuple in ipairs (vimKaizenPatterns ) do
You can’t perform that action at this time.
0 commit comments