add more emacs keybindings, clean up old ones

This commit is contained in:
David Majnemer 2010-06-28 12:05:42 -07:00
parent 05db283d8e
commit 9a9d52e324

23
vimrc
View file

@ -300,6 +300,9 @@ map! <C-a> <Home>
map <C-a> <Home>
map! <C-e> <End>
map <C-e> <End>
imap <C-f> <Right>
imap <C-b> <Left>
map! <M-BS> <C-w>
map <C-k> d$
if has('eval')
inoremap <buffer> <C-K> <C-R>=EmacsKill()<CR>
@ -326,8 +329,8 @@ map! <C-h> <BS>
if (&term =~ "interix")
map <C-?> <DEL>
map! <C-?> <DEL>
map  <Home>
map  <End>
map <C-[>[H <Home>
map <C-[>[U <End>
elseif (&term =~ "^sun")
map <C-?> <DEL>
map! <C-?> <DEL>
@ -337,14 +340,14 @@ elseif (&term !~ "cons")
endif
if (&term =~ "^xterm")
map  <Home>
map!  <Home>
map  <End>
map!  <End>
map  <C-Left>
map!  <C-Left>
map  <C-Right>
map!  <C-Right>
map <C-[>[H <Home>
map! <C-[>[H <Home>
map <C-[>[F <End>
map! <C-[>[F <End>
map <C-[>[5D <C-Left>
map! <C-[>[5D <C-Left>
map <C-[>[5C <C-Right>
map! <C-[>[5C <C-Right>
endif
" Python specific stuff