I often have the piece of code like this:
it "should do something", :focus do
...
end
When I want to delete , :focus I usually do
- Go to line 1:
1G - Go to the colon:
f: - Delete colon (using around word, so I can repeat it):
daw - Delete
focus(just repeat previous):.. - Delete comma (move left and replace it with space):
hr<SPACE>.
Is there any way steps 3-5 can be achieved more efficiently?
You can go:
1Gto go to first linef,to go to the commadEto delete till the next end of WORD (WORD in capital letters is any sequence of characters that is not space).