Skip to main content
6 events
when toggle format what by license comment
Jun 17, 2015 at 7:49 comment added VanLaser In this case (which frankly I don't see in the original question), I found the solution proposed above, with cT. (which preserves the ';') the best one.
Jun 17, 2015 at 4:27 comment added Janis I would have assumed that the OP's data has some context that should not be touched, like in: pre-context; e.printStackTrace(); post-Context;. (Otherwise deleting the whole line with S would have been the obvious way. But it's very unlikely that in such code there wouldn't even be an indentation to preserve.)
Jun 16, 2015 at 21:34 comment added VanLaser It means, since you want to end up with the cursor on the e - it's easier to delete the whole line in one go and write the e again. Typing S has the threefold advantage of 1. deleting the whole line 2. indenting and 3. leaving you in insert mode to type the e again etc.
Jun 16, 2015 at 16:20 history edited Peter Rincker CC BY-SA 3.0
re-word
Jun 16, 2015 at 15:54 comment added user2405469 You are are optimizing keystrokes to save 1 character on the line. Really? - not sure what you mean...i just wanted to remove everything to the beginning and and put it in insert mode, if is more simply put. Sorry for any confusion.
Jun 16, 2015 at 15:52 history answered Peter Rincker CC BY-SA 3.0