ConEmu build: 190331 [64]
OS version: Windows Version 1709 (OS Build 16229.1087)
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): powershell-core and powershell
I'm having problem with the backspace. It used to be fine before, but it's not currently (I don't know since when). When I press backspace in INSERT mode, it inserts characters ÃŽx, AND when I press backspace in NORMAL mode, instead of moving back on characters, it deletes the character.
vimrc):set encoding=utf-8
if !has('gui_running')
set termencoding=utf-8
set term=xterm
inoremap <Char-0x07F> <BS>
nnoremap <Char-0x07F> <BS>
let &t_AB="\e[48;5;%dm"
let &t_AF="\e[38;5;%dm"
set t_Co=256
endif
Go to INSERT mode, type something and press backspace, it inserts ÃŽx, go to NORMAL mode, press backspace, and it will delete the characters
The backspace in INSERT mode should remove the character, and in NORMAL mode, should just move back on the characters
It seems that the line set encoding=utf-8 has something to do with the display of those characters, but when I remove that line, pressing backspace will cause the mode to go to NORMAL mode, and then it deletes the characters (which is still unexpected because backspace in NORMAL mode shouldn't delete the characters)
This is known issue, also arrow keys don't work if you use set term=xterm
So, is there a plan to fix this? Because it used to work before :(
I don't know if @Maximus5 plans to fix this, but I never had any working version and I always use preview versions.
Actually, I never use arrow keys in Vim, so I'm not sure about them, but I'm pretty sure I didn't always have this issue with backspace
This is not a known issue. This problem is appeared after I updated vim from 1025 to 1240.
Workaround which works for me:
let &t_kb="\xcex"
I've added a bunch of remapping in _vimrc
" Conemu setup
if !empty($CONEMUHOOKS)
" Conemu required for 256 bit color
let &t_AB="\e[48;5;%dm"
let &t_AF="\e[38;5;%dm"
" Keyboard remappings for utf8 and conemu
let &t_kb="\xcex"
let &t_ku="\xceH"
let &t_kd="\xceP"
let &t_kl="\xceK"
let &t_kr="\xceM"
endif
Update: Fixed if to actually work.
It is still broken for command-line mode.
EDIT: Specifically, Delete prints ÃŽS
EDIT2: let &t_kD="\xceS" fixes it
I've added a bunch of remapping in _vimrc
" Conemu setup
if !empty($CONEMUHOOKS)
" Conemu required for 256 bit color
let &t_AB="\e[48;5;%dm"
let &t_AF="\e[38;5;%dm"" Keyboard remappings for utf8 and conemu
let &t_kb="\xcex"
let &t_ku="\xceH"
let &t_kd="\xceP"
let &t_kl="\xceK"
let &t_kr="\xceM"
endifUpdate: Fixed if to actually work.
This worked perfectly for me. After 3 days of struggling and searching for solution found it here … Perfect! Thnx!
Most helpful comment
I've added a bunch of remapping in _vimrc
Update: Fixed if to actually work.