File plugin/emacscommandline.vim changed (mode: 100644) (index f0b5b1f..2726070) |
... |
... |
cnoremap <C-F> <Right> |
5 |
5 |
cnoremap <C-P> <Up> |
cnoremap <C-P> <Up> |
6 |
6 |
cnoremap <C-N> <Down> |
cnoremap <C-N> <Down> |
7 |
7 |
cnoremap <Esc>r <C-F>? |
cnoremap <Esc>r <C-F>? |
8 |
|
cmap <M-R> <Esc>r |
|
|
8 |
|
cmap <M-r> <Esc>r |
9 |
9 |
|
|
10 |
10 |
" Maps to old shortcuts using Ctrl-O as a prefix |
" Maps to old shortcuts using Ctrl-O as a prefix |
11 |
11 |
cnoremap <C-O><C-A> <C-A> |
cnoremap <C-O><C-A> <C-A> |
|
... |
... |
cnoremap <C-O><Del> <Del> |
25 |
25 |
cnoremap <C-O><BS> <BS> |
cnoremap <C-O><BS> <BS> |
26 |
26 |
|
|
27 |
27 |
cnoremap <Esc>f <C-\>e<SID>ForwardWord()<CR> |
cnoremap <Esc>f <C-\>e<SID>ForwardWord()<CR> |
28 |
|
cmap <M-F> <Esc>f |
|
|
28 |
|
cmap <M-f> <Esc>f |
29 |
29 |
function! <SID>ForwardWord() |
function! <SID>ForwardWord() |
30 |
30 |
let l:loc = strpart(getcmdline(), 0, getcmdpos() - 1) |
let l:loc = strpart(getcmdline(), 0, getcmdpos() - 1) |
31 |
31 |
let l:roc = strpart(getcmdline(), getcmdpos() - 1) |
let l:roc = strpart(getcmdline(), getcmdpos() - 1) |
|
... |
... |
function! <SID>ForwardWord() |
42 |
42 |
endfunction |
endfunction |
43 |
43 |
|
|
44 |
44 |
cnoremap <Esc>b <C-\>e<SID>BackwardWord()<CR> |
cnoremap <Esc>b <C-\>e<SID>BackwardWord()<CR> |
45 |
|
cmap <M-B> <Esc>b |
|
|
45 |
|
cmap <M-b> <Esc>b |
46 |
46 |
function! <SID>BackwardWord() |
function! <SID>BackwardWord() |
47 |
47 |
let l:loc = strpart(getcmdline(), 0, getcmdpos() - 1) |
let l:loc = strpart(getcmdline(), 0, getcmdpos() - 1) |
48 |
48 |
let l:roc = strpart(getcmdline(), getcmdpos() - 1) |
let l:roc = strpart(getcmdline(), getcmdpos() - 1) |
|
... |
... |
function! <SID>BackwardKillLine() |
121 |
121 |
endfunction |
endfunction |
122 |
122 |
|
|
123 |
123 |
cnoremap <Esc>d <C-\>e<SID>KillWord()<CR> |
cnoremap <Esc>d <C-\>e<SID>KillWord()<CR> |
124 |
|
cmap <M-D> <Esc>d |
|
|
124 |
|
cmap <M-d> <Esc>d |
125 |
125 |
function! <SID>KillWord() |
function! <SID>KillWord() |
126 |
126 |
call <SID>saveUndoHistory(getcmdline(), getcmdpos()) |
call <SID>saveUndoHistory(getcmdline(), getcmdpos()) |
127 |
127 |
let l:loc = strpart(getcmdline(), 0, getcmdpos() - 1) |
let l:loc = strpart(getcmdline(), 0, getcmdpos() - 1) |