Use a shorter title string on Windows.
authorIain Patterson <me@iain.cx>
Mon, 7 Dec 2009 15:32:49 +0000 (15:32 +0000)
committerIain Patterson <me@iain.cx>
Mon, 7 Dec 2009 15:32:49 +0000 (15:32 +0000)
Titles must fit on to taskbar entries which are usually short.

.vimrc

diff --git a/.vimrc b/.vimrc
index 21de57f..460bcfb 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -145,7 +145,12 @@ se t_WS=\e[8;%p1%d;%p2%dt
 se hlsearch
 
 " Set graphical window title.
-se titlestring=%{Show_TitleString()}
+if has("win32")
+  " Windows taskbar entries are probably too small to show full titles.
+  se titlestring=%t
+else
+  se titlestring=%{Show_TitleString()}
+endif
 
 " Syntax highlighting.  New versions will use syn enable instead.
 if version < "600"