Skip to content

Commit

Permalink
system clipboard -> vim default register
Browse files Browse the repository at this point in the history
for linux, osx and windows.
follow-up for spf13#153
  • Loading branch information
wolfgangpfnuer committed Oct 1, 2012
1 parent 7bcc764 commit 1735880
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@
" Basics {
set nocompatible " must be first line
set background=dark " Assume a dark background
if has("unix")
let s:uname = system("echo -n \"$(uname)\"")
if s:uname == "Darwin"
" on osx -> use * register (cmd-c/x/v)
set clipboard=unnamed
else
" on linux -> use + register (ctrl-c/x/v)
set clipboard=unnamedplus
endif
else
" on windows -> use * register (ctrl-c/x/v)
set clipboard=unnamed
endif
" }

" Windows Compatible {
Expand Down

0 comments on commit 1735880

Please sign in to comment.