If you'd like to copy the contents of the current file (buffer) to the Mac system clipboard, there are a couple of ways of doing this: Option 1: Use the terminal utilities to output the files and pipe contents to the clipboard. :!cat % | pbcopy Option 2: Set the vim clipboard to be the …
Continue reading "Vim: copy contents of current file to MacOS clipboard"

