Skip to content

Commit

Permalink
Better clipboard testing
Browse files Browse the repository at this point in the history
  • Loading branch information
johntyree committed Dec 1, 2013
1 parent e477f03 commit c5addb9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@
set mousehide " Hide the mouse cursor while typing
scriptencoding utf-8

if LINUX() " On Linux use + register for copy-paste
set clipboard=unnamedplus
else " On mac and Windows, use * register for copy-paste
set clipboard=unnamed
if has('clipboard')
if LINUX() " On Linux use + register for copy-paste
set clipboard=unnamedplus
else " On mac and Windows, use * register for copy-paste
set clipboard=unnamed
endif
endif

" Most prefer to automatically switch to the current file directory when
Expand Down

0 comments on commit c5addb9

Please sign in to comment.