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

Ah this is incredible, thank you. I didnt realize that about <c-r>... wow, that is crazy cool.

Next question, do you usually add stuff to buffers in alphabetical order... a,b,c or do you pick something easier within reach like a,s,d (or something else entirely)




Usually a/b/c but sometimes f/function, k/key, v/value... just a simple mnemonic.

To really blow your mind:

    i<c-r>%

    V:!ls<cr>
Then you start playing with marks a little bit with a similar concept (eg: ma, mb, mc, 'a, 'b, 'c), and the good friend `gi` (go back to previous insert position)...

It's again, esoteric, but as you use it more, it becomes less esoteric and more just another part of your vim vocabulary (:help search-offset, fellow traveler).




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: