just ram

stuff I should remember

vim-ruby-refactoring - Convert Post Conditional

This post is part of a series which documents the vim-ruby-refactoring plugin.

Convert Post Conditional

Converts a post conditional expression to a conditional expression.


Before refactoring:

Move the cursor onto the line which contains the post conditional expression
Hit your **** then type **rcpc **

After refactoring:

The post conditional expression is split across 3 lines and converted into a standard if expression.

rcpc is the default binding for this refactoring, think Refactor Convert Post Conditional.