summaryrefslogtreecommitdiff
path: root/.config/vim
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2015-12-30 17:44:50 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2015-12-30 17:44:50 +0100
commitd21ae86485659e925ac753f79b545d866c9fbdb0 (patch)
treea9159aed96ac0c9964f1e22064615d5c935750ba /.config/vim
parentbb415b0b7d6ec9b1463128fbf0d893ddecda4ac5 (diff)
downloaddotfiles-d21ae86485659e925ac753f79b545d866c9fbdb0.tar.gz
dotfiles-d21ae86485659e925ac753f79b545d866c9fbdb0.tar.bz2
dotfiles-d21ae86485659e925ac753f79b545d866c9fbdb0.zip
gvim: make shift+insert work
Diffstat (limited to '.config/vim')
-rw-r--r--.config/vim/vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/vim/vimrc b/.config/vim/vimrc
index 6483d08..ec8cb6d 100644
--- a/.config/vim/vimrc
+++ b/.config/vim/vimrc
@@ -89,6 +89,12 @@ map <C-y> "+y
nnoremap ; :
vnoremap ; :
+if has('gui_running')
+ " Make shift-insert work like in Xterm
+ map <S-Insert> <MiddleMouse>
+ map! <S-Insert> <MiddleMouse>
+endif
+
" strip ^M linebreaks from dos formatted files
map M :%s/ $//g