Script Roundup: textobj-word-column.vim, refactor-rails.vim
Send in your Vim scripts for review through our contact form or @vimnews.
textobj-word-column.vim
textobj-word-column.vim by Jim Garvin adds extra text-objects:
ac: A columnic: Inner columnaC: A COLUMN, based onaWiC: Inner COLUMN, based oniW
These text-objects can be combined with other commands. For example, vic will visually select a column. The author has made an animated gif that demonstrates the plugin with some Ruby code.
refactor-rails.vim
refactor-rails.vim (GitHub: sandeepravi / refactor-rails.vim, License: Vim) by Sandeep Ravichandran is designed to help refactor Rails projects, and includes commands like these:
riv: Select an instance variable in Visual mode, then use this to rename item: Extract selected code into a new methodrc: Rename a controller, including all associated helpers and test cases