The title is very descriptive. Just in case, I will give an example:
START BLOCK1
something
END BLOCK1
START BLOCK2
something
somenthing...
END BLOCK2
Like @dronus mentioned in the comments, the :w !pbcopy
suggestions does not copy correctly because it copies the entire line. If I want to copy only the url in a line, I will not be able to. Here's a line that you can add to your .vimrc
file so that everytime you hit CTRL-C, the selected line in your vim will be copied to clipboard:
map y:e ~/clipsongzboardP:w !pbcopy:bdelete!
If you'd like to read details about what this does, you can read about this on my blog
Its the same implementation as what @rmeador suggested.