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

I've got that cheat sheet saved on my computer and I've looked at it several times before, but today was the first time I realized that you can hit '&' to repeat the last :s command on the current line. Very slick!!


Yep, and 'g&' is really helpful. It runs the last substitute across the entire file, preserving flags.




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

Search: