Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Nifty Vim Tricks (terminally-incoherent.com)
1 point by pauljonas on April 1, 2012 | hide | past | favorite | 1 comment


    YpVr=
    
    Yank line, Paste below, Select line, Replace with ‘=’
    
    Yank the current line, paste it below, replace all characters with ‘=’. Or in other words make a Markdown heading. You can replace ‘=’ with any other character.
Hey, nifty, I didn't know that.

Hey, wait, I do that every day, exactly like that, and have been doing it that way for years. I just don't think of it as YpVr=, I think "make an underline" and it happens.

This is why I like Vim so much, it seeps into my brain and I forget "how" to use it, and just use it.




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

Search: