Skip to content

Instantly share code, notes, and snippets.

View duylam's full-sized avatar

Duy Lam duylam

View GitHub Profile
@duylam
duylam / vim-cheatsheet.md
Last active June 27, 2021 03:12
Vim cheatsheet

Copy text in vim and paste at other GUI app (like Terminal, Firefox, etc.)

To copy text in vim into system clipboard to paste at other app (like Terminal), built-in vi in MacOS isn't compiled with GUI all tricks on Internet doesn't work. The possible option:

  • Install vim with brew: brew install vim, launch with vim (from brew) instead of vi (from MacOS)
  • Switch to Visual mode (type v)
  • Select the block
  • Use :+y to copy (read more)

Remove plugin in Plug