Reputation: 973
I'm using Vim on a Mac, installed via homebrew, version 8.0.
Vim --version shows +clipboard, and -xterm_clipboard.
I've tried
set clipboard=unnamed
in .vimrc
But I cannot get yanks to go on to the system clipboard. What do I do?
Upvotes: 2
Views: 805
Reputation: 16737
It should "just work" on MacVim. One of the reasons I'm using it is for its OSX integration, including clipboard.
brew install macvim
mvim
defaults to graphical mode. To run it in terminal mode:
mvim -v
In the past, I had an alias for vim
-> mvim -v
which handles most cases. These days I use the following script in ~/bin/vim
, which is in my $PATH
:
#!/bin/bash
mvim -v "$@"
Upvotes: 1
Reputation: 1141
seems like something is overriding your clipboard setting after loading your vimrc.
try :verbose set clipboard?
. It should tell you when and where this variable was last set.
This guide gives you a bunch of hints on what to do to figure out what's going on and fix the problem
Upvotes: 0