Windows 64-bit compatibility.
authorIain Patterson <me@iain.cx>
Mon, 7 Dec 2009 15:43:39 +0000 (15:43 +0000)
committerIain Patterson <me@iain.cx>
Mon, 7 Dec 2009 15:43:39 +0000 (15:43 +0000)
Native 64-bit builds of Vim define win64.  Check for that in addition to
win32 when determining if we are on Windows.

.vimrc

diff --git a/.vimrc b/.vimrc
index 460bcfb..26ce8db 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -19,7 +19,7 @@ version 4.0
 se nocp
 
 " Find stuff.
 se nocp
 
 " Find stuff.
-if has("win32")
+if has("win32") || has("win64")
   se rtp=~/.vim,$VIMRUNTIME
 endif
 
   se rtp=~/.vim,$VIMRUNTIME
 endif
 
@@ -145,7 +145,7 @@ se t_WS=\e[8;%p1%d;%p2%dt
 se hlsearch
 
 " Set graphical window title.
 se hlsearch
 
 " Set graphical window title.
-if has("win32")
+if has("win32") || has("win64")
   " Windows taskbar entries are probably too small to show full titles.
   se titlestring=%t
 else
   " Windows taskbar entries are probably too small to show full titles.
   se titlestring=%t
 else
@@ -596,7 +596,7 @@ endif "}}}1
 if version >= "600" "{{{1
 version 6.0
 
 if version >= "600" "{{{1
 version 6.0
 
-if has("win32")
+if has("gui_win32")
   se encoding=utf-8
 endif
 
   se encoding=utf-8
 endif
 
@@ -611,7 +611,7 @@ syn enable
 
 " Set colours.
 if has("gui_running")
 
 " Set colours.
 if has("gui_running")
-  if has("win32")
+  if has("win32") || has("win64")
     exe "silent se guifont=DejaVu_Sans_Mono:h10:cANSI"
   else
     exe "silent se guifont=DejaVu\\ Sans\\ Mono\\ 10"
     exe "silent se guifont=DejaVu_Sans_Mono:h10:cANSI"
   else
     exe "silent se guifont=DejaVu\\ Sans\\ Mono\\ 10"