From 40c00dc76f81665bc5fa8eff048000f6f730bd09 Mon Sep 17 00:00:00 2001 From: David Alexander Majnemer Date: Sat, 4 Apr 2009 01:01:35 -0500 Subject: [PATCH 1/2] fixed vim --- gvimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/gvimrc b/gvimrc index 2408b1a..8f49f0b 100644 --- a/gvimrc +++ b/gvimrc @@ -10,3 +10,4 @@ set guioptions-=R " Disable the (right) scrollbar set guioptions-=r " Disable the (right) scrollbar set guioptions-=l " Disable the (left) scrollbar set guioptions-=L " Disable the (left) scrollbar +set guioptions-=a " Share the copy buffer with visual mode From 9ba9ac55be68d6ed6c06c177e628f227916233c0 Mon Sep 17 00:00:00 2001 From: David Alexander Majnemer Date: Sun, 12 Apr 2009 04:54:34 -0500 Subject: [PATCH 2/2] only try title/statusline stuff if we can --- vimrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index c83c625..2671363 100644 --- a/vimrc +++ b/vimrc @@ -97,11 +97,15 @@ if (v:version >= 700) imap :silent set spell! endif -" Always display a pretty statusline -set title +" Display a pretty statusline if we can +if has('title') + set title +endif set laststatus=2 set shortmess=atI -set statusline=Editing:\ %r%t%m\ %=Location:\ Line\ %l/%L\ \ Col:\ %c\ (%p%%) +if has('statusline') + set statusline=Editing:\ %r%t%m\ %=Location:\ Line\ %l/%L\ \ Col:\ %c\ (%p%%) +endif " Enable modelines only on secure vim if (v:version == 603 && has("patch045")) || (v:version > 603)