Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
chewbranca
on Sept 25, 2009
|
parent
|
context
|
favorite
| on:
Efficient Editing With vim
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!!
joshuaxls
on Sept 25, 2009
[–]
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: