]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Enable fast terminal mode in GNU screen and tmux.
authorSimon Ruderich <simon@ruderich.org>
Tue, 20 Nov 2012 21:01:57 +0000 (22:01 +0100)
committerSimon Ruderich <simon@ruderich.org>
Tue, 20 Nov 2012 21:01:57 +0000 (22:01 +0100)
vimrc

diff --git a/vimrc b/vimrc
index 5bc468a4bd3a0c97f77cc16a2d46d406ce03f3c1..c5941692bd497a23e9e04338ce3272c1c8ba0148 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -140,6 +140,15 @@ if has('eval')
 endif
 
 
+" TERMINAL SETTINGS
+
+" Also enable fast terminal mode in GNU screen and tmux, but not for SSH
+" connections.
+if &term =~# '^screen' && !exists('$SSH_CONNECTION')
+    set ttyfast
+endif
+
+
 " EDIT SETTINGS
 
 " Enable automatic file detection, plugin and indention support.