News for hackers. Stuff that matters.
Re:VIM Hacks by throw_away on Friday December 11, 2009 @07:59PM (#990930)
the f & t commands are more useful if they are composed with action commands. say, for example, I have used the method getNewObject, but then I realize that it's really supposed to be createObject. If my cursor is on the g, I can say ctOcreate<esc> (change the text between the cursor up to the character before the next O to read "create"). outside of vim, I have to move my cursor over to the O, backspace out the "getNew" and then type "create".

a nine character difference (or three if you have a delete-character command) doesn't sound like much, but it adds up & also breaks you out of your flow a little bit. I find myself doing refactorings other people wouldn't do, just because I know how to do them very quickly in vim, while others would be arrow-keying and back-spacing around forever.

There are no comments on this comment yet.