Could you post what key strokes are you using to each example?
markson opened this issue · comments
I haven't use sublime2 before, could you show me what key strokes are you using for each example?
For example 1, it's really simple:
- jump to
p
withfp
- select the word under cursor with
C-n
- do that two more times for the other two occurrences in the function
- press
c
to change - type the replacement
- press
<Esc>
to quit back to regular Vim
For example 2:
- select the line with
V
- go to the end of the file with
G
- press
C-n
to add a cursor at the beginning of every line and move to normal mode I
to insert at the beginning of the line- type
"
, move to end of line withC-e
, type another"
and,
- move every cursor down 1 line with
C-j
(this is a custom mapping of mine in Insert mode) - hit
<bs>
, now all the words are on the same line - the rest is just normal Vim
For example 3:
dt"
to delete everything until the first quoteL
to go to end of line (my custom mapping)r,
to replace the]
with,
- go back to the beginning of the line with
H
(custom),f,
finds the first comma - mash on
C-n
until the last occurrence c
followed by<CR>
to break it into multiple lines- move every cursor up one line with
C-k
(again my custom mapping) - delete the left quote with
C-g<BS>
(custom mapping to move cursor in insert mode) - go to end of line and delete right quote with
C-e<BS>
Everything looks really long when typed out, but it's pretty natural I'm sure to most Vimmers. Hope it helps!
Mon
Tue
Web
Thu
Fri
Sat
:call 98_apply_user_input_next('i')
` Sun
I got :call <SNR>98_apply_user_input_next('i')
when hit v to return to the normal model and hit I
to try to input.
here's my .vimrc
Not sure what step you're on. Are you trying to replay the examples? None of them involves using v
to go back to normal mode.
You should probably add this to the readme. If anything atleast a link to this issue. I was about to ask the same question.
Added a link to this on the README.
in example 2,
** type ", move to end of line with C-e, type another " and ,
after I input "I" and insert ", but C-e can't jump end of the lines, just input a character as same as below one. like this:
"TMon
"WTue
"Web
I didn't do custom mapping for C-e can you tell me how you jump the cursor to the end when you are in insert mode ? seems impossible .