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

You can use <shift>v then move to your start line and type y or d. This way you see the text marked before yanking or deleting. <control>v is similar. And gv will reselect the marked area.


And if you have line numbering on you can y123G. I learned enough Vim 25 years ago to be good enough and I'm happy I did. When I was writing code every day I picked up a little more but I've lost most of it, and what I'd want people to know who are considering it is you never need to be a Vim Master. You can learn enough Vim in 30 minutes to make it beneficial to you for the rest of your life.


I turn on relative line numbering so that y123G might be y8j and vim will show me the 8.




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

Search: