I used
Conner's answer here: http://stackoverflow.com/questions/11489428/how-to-make-vim-paste-from-and-copy-to-systems-clipboard and Ignacio Vazquez-Abrams's answer here:
http://superuser.com/questions/194747/how-to-install-vim-with-clipboard-support-on-fedora
to get copy/paste working for me.
- install gvim
- create an alias in my .bashrc file so I don't have to type 'gvim -v' instead of 'vi'
- To select:
- position your cursor at the beginning of the text block you want to copy
- shift+v ('V')
- arrow down
- "yank" the text using "+y (keydown shift ' and +, then keyup shift, then y)
- Paste into a different program (like gedit, which I use as a scratch-pad) using your mouse wheel or ctrl+v
If you're new to vim, use :paste before pasting in code-blocks to preserve formatting.