]> code.delx.au - dotfiles/commitdiff
Hacks to make iTerm work better.
authorJames Bunton <jamesbunton@delx.net.au>
Tue, 3 Jun 2008 07:08:17 +0000 (17:08 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Tue, 3 Jun 2008 07:08:17 +0000 (17:08 +1000)
.vim/display.vim

index 127f1aa641de6bb6043be2ac247cc3696e505afe..3dccf8d9dbfb7f299abeb799ce6735dce86f7524 100644 (file)
@@ -53,8 +53,11 @@ set hlsearch
 set mouse=a
 set mousehide
 
-" Mouse support detection
-if strpart(&ttytype, 0, 14) == 'xterm-itermapp' || strpart(&ttytype, 0, 6) == 'screen'
+" Hacks for iTerm
+if $TERM_PROGRAM == 'iTerm.app'
+       " This is supported, but not autodetectable
        set ttymouse=xterm2
+       " Fixes ugly black border when using Vim splits and iTerm tabs
+       set t_ms=
 endif