]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vimrc
vimrc: Enable fast terminal mode in GNU screen and tmux.
[config/dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index 42479fa64c76bc70bac6e0bbd053439f71181410..c5941692bd497a23e9e04338ce3272c1c8ba0148 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -105,6 +105,9 @@ if exists('+cryptmethod')
     set cryptmethod=blowfish
 endif
 
+" Create new split windows on the right (and not left).
+set splitright
+
 " Clear all vimrc-related autocmds. Has to be done here as the vimrc augroup
 " is used multiple times. Necessary to support reloading the vimrc.
 if has('autocmd')
@@ -137,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.