Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSX VIM clipboard support

Does anyone here know why on OSX, clipboard is not supported in VIM editor? and what is the impact of compile from source to replace the existing binary?

Thanks,

like image 744
user1086039 Avatar asked Jun 18 '26 12:06

user1086039


2 Answers

Try adding set cb=unnamed to your .vimrc.

like image 73
kenny Avatar answered Jun 21 '26 06:06

kenny


I think I've got an answer. Looking a my vim build, the clipboard module is not enabled. That's the reason why I try *p doesn't work for me.

So either I've to recompile VIM to enable clipboard support or MacVIM as alternative.

There is also another solution which is to use pbcopy/pbpaste. It's even better to map keystroke to this command line.

Dara kok

like image 20
user1086039 Avatar answered Jun 21 '26 06:06

user1086039