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 withvim
(from brew) instead ofvi
(from MacOS) - Switch to Visual mode (type
v
) - Select the block
- Use
:+y
to copy (read more)