From 0ffd9a6b1cedbf8a3e465513cd63c418a8560a31 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Fri, 29 Jul 2011 15:11:56 +0200 Subject: [PATCH] fix keys for both Terminal.app and insert mode --- vimrc | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/vimrc b/vimrc index 9788e13..2a3512c 100644 --- a/vimrc +++ b/vimrc @@ -127,16 +127,34 @@ let g:CommandTMatchWindowReverse=1 "xterm key combos map OD +map! OD map OC -noremap  -noremap  -"OSX control key -noremap  -noremap  +map! OC +map  +map!  +map  +map!  +"iTerm2 control+arrows +map  +map!  +map  +map!  +"Terminal.app control+arrows +map  +map!  +map  +map!  +"Terminal.app option+arrows +map b +map! b +map f +map! f " make meta move on words like control -noremap -noremap +map +map! +map +map! " highlight background for >80 "highlight OverLength ctermbg=red ctermfg=white guibg=#592929