Disable the default <c-h> mapping for all non-GUI Vim
To avoid confusion and to reduce the number of unnecessary bug reports/feature requests regarding <c-h> and <bs> in terminals. Previously only disabled for console Vim on Windows.
This commit is contained in:
parent
4b6670afac
commit
398f6036a8
@ -134,7 +134,7 @@ let [s:lcmap, s:prtmaps] = ['nn <buffer> <silent>', {
|
|||||||
\ 'PrtExit()': ['<esc>', '<c-c>', '<c-g>'],
|
\ 'PrtExit()': ['<esc>', '<c-c>', '<c-g>'],
|
||||||
\ }]
|
\ }]
|
||||||
|
|
||||||
if !has('gui_running') && ( has('win32') || has('win64') )
|
if !has('gui_running')
|
||||||
cal add(s:prtmaps['PrtBS()'], remove(s:prtmaps['PrtCurLeft()'], 0))
|
cal add(s:prtmaps['PrtBS()'], remove(s:prtmaps['PrtCurLeft()'], 0))
|
||||||
en
|
en
|
||||||
|
|
||||||
|
@ -430,9 +430,8 @@ only need to keep the lines that you've changed the values (inside []): >
|
|||||||
\ 'PrtExit()': ['<esc>', '<c-c>', '<c-g>'],
|
\ 'PrtExit()': ['<esc>', '<c-c>', '<c-g>'],
|
||||||
\ }
|
\ }
|
||||||
<
|
<
|
||||||
Note: In some terminals, it's not possible to remap <c-h> without also changing
|
Note: if pressing <bs> moves the cursor one character to the left instead of
|
||||||
<bs> (|keycodes|). So if pressing <bs> moves the cursor to the left instead of
|
deleting a character for you, add this to your |.vimrc| to disable the plugin's
|
||||||
deleting a char for you, add this to your |.vimrc| to disable the plugin's
|
|
||||||
default <c-h> mapping: >
|
default <c-h> mapping: >
|
||||||
let g:ctrlp_prompt_mappings = { 'PrtCurLeft()': ['<left>', '<c-^>'] }
|
let g:ctrlp_prompt_mappings = { 'PrtCurLeft()': ['<left>', '<c-^>'] }
|
||||||
<
|
<
|
||||||
|
Loading…
Reference in New Issue
Block a user