mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
add more emacs keybindings, clean up old ones
This commit is contained in:
parent
05db283d8e
commit
9a9d52e324
1 changed files with 13 additions and 10 deletions
23
vimrc
23
vimrc
|
@ -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 [H <Home>
|
||||
map [U <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 [H <Home>
|
||||
map! [H <Home>
|
||||
map [F <End>
|
||||
map! [F <End>
|
||||
map [5D <C-Left>
|
||||
map! [5D <C-Left>
|
||||
map [5C <C-Right>
|
||||
map! [5C <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
|
||||
|
|
Loading…
Add table
Reference in a new issue