Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There’s a tradeoff involved. Sometimes the effort of planning is greater than that of doing it by hand. Usually I start a repetitive task, notice the repetition, then finish it off in a better way only if it’s less work than going on manually. There’s perhaps more value in noticing longer trends; for example, making a keybinding to duplicate the current line when you find yourself saying C-{a k k y y} more than is healthy.


You could also just do C-{a e Space y} ;)


I’m not sure what you mean.


Sorry, should've been C-{a Space e w y}.

Go to beginning of line, set mark, go to end of line, copy, paste.


I want to duplicate the current line, not just put it in the killring.


In ST2: Ctrl+C Ctrl+V (without anything selected).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: