I have this
subject { }
it 'delete user' do
expect(BlaBla).to eq ''
MyModel.my_method
end
And I want this
subject { MyModel.my_method }
it 'delete user' do
expect(BlaBla).to eq ''
end
1. First try
If I do dd and then past it inside my bracket with i<CTRL>r"" I will get something like
subject { MyModel.my_method
}
And I have to go in insert mode to past the text and I have to clean some extra space and joins line.
2. Second try
I go on the line wy$ then "_dd to remove the line without save it. Then go after the first { : ?{<ENTER>lpa<space>
What will be a better motion to cut only the content of the line store into a register remove the line jump below past inside brackets?
Dbut like your version. – Mio Feb 24 '16 at 10:50