Copy file contents directly from within vim :%!tee >(pbcopy) Alternate options gg"+yG VG”+y (assuming cursor at first line, avoids gg) %y+