Hacker News new | ask | show | jobs
by Syssiphus 3720 days ago
Normally you should be able to yank the lines you want to copy to the * register (check :registers). The * register is basically the clipboard. You can use it to copy stuff from and to Vim. It does not necessarily work under every OS, but so far in Windows and OSX it worked fine on console and GUI.

For commenting and uncommenting you can check the NerdCommenter plugin.