From c05bce46f59da8e0e3feeeef4e0c010bddea0a68 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Mon, 19 Nov 2012 12:06:34 -0800 Subject: [PATCH] Fix issue with yank/paste in vim when inside tmux on os x There might be an issue when using yank/paste in tmux on other platforms. By might, I mean probably. --- vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 90f67f8..289d133 100644 --- a/vimrc +++ b/vimrc @@ -14,11 +14,14 @@ colorscheme wombat set fileformats=unix,dos,mac " support all three, in this order set nostartofline " leave my cursor where it was set history=1000 -set clipboard+=unnamed " turns out I do like is sharing windows clipboard set autoread " Set to auto read when a file is changed from the outside set autochdir " Change current directory to be directory of current file set colorcolumn=80 +if $TMUX == '' + set clipboard+=unnamed +endif + set backspace=start,eol,indent set whichwrap+=<,>,[,]