[GH-ISSUE #2435] 终端vim的普通模式下,backspace识别错误 #1560

Closed
opened 2026-02-27 00:04:01 +03:00 by kerem · 4 comments
Owner

Originally created by @PaTTeeL on GitHub (Apr 6, 2022).
Original GitHub issue: https://github.com/electerm/electerm/issues/2435

Electerm Version(Electerm版本)

v1.20.10

Platform detail (平台详情)

Microsoft Windows NT 10.0.19042.0 x64

What steps will reproduce the bug?(重新问题的详细步骤)

终端在vim的普通模式下,backspace识别错误,一旦输错命令无法回退,还会出现^?符号

屏幕截图 2022-04-06 224937

What should have happened?(期望的结果)

vim普通模式可以正常使用backspace键

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

No response

Additional information(其他任何相关信息)

No response

Originally created by @PaTTeeL on GitHub (Apr 6, 2022). Original GitHub issue: https://github.com/electerm/electerm/issues/2435 ### Electerm Version(Electerm版本) v1.20.10 ### Platform detail (平台详情) Microsoft Windows NT 10.0.19042.0 x64 ### What steps will reproduce the bug?(重新问题的详细步骤) 终端在vim的普通模式下,backspace识别错误,一旦输错命令无法回退,还会出现^?符号 ![屏幕截图 2022-04-06 224937](https://user-images.githubusercontent.com/9150277/162003410-c573dfab-3e9e-4f85-a495-8e046cfad33d.jpg) ### What should have happened?(期望的结果) vim普通模式可以正常使用backspace键 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) _No response_ ### Additional information(其他任何相关信息) _No response_
kerem 2026-02-27 00:04:01 +03:00
Author
Owner

@zxdong262 commented on GitHub (Apr 7, 2022):

请问连接什么服务器?vim版本?

<!-- gh-comment-id:1091674104 --> @zxdong262 commented on GitHub (Apr 7, 2022): 请问连接什么服务器?vim版本?
Author
Owner

@PaTTeeL commented on GitHub (Apr 7, 2022):

请问连接什么服务器?vim版本?

这样可以吗?

ubuntu@instance-01:~$ uname -a
Linux instance-01 5.13.0-1021-oracle #26~20.04.1-Ubuntu SMP Mon Mar 7 14:26:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@instance-01:~$ vim --version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 01 2022 09:16:32)
Included patches: 1-2269, 3612, 3625, 3669, 3741
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Huge version without GUI.  Features included (+) or not (-):
+acl               -farsi             -mouse_sysmouse    -tag_any_white
+arabic            +file_in_path      +mouse_urxvt       -tcl
+autocmd           +find_in_path      +mouse_xterm       +termguicolors
+autochdir         +float             +multi_byte        +terminal
-autoservername    +folding           +multi_lang        +terminfo
-balloon_eval      -footer            -mzscheme          +termresponse
+balloon_eval_term +fork()            +netbeans_intg     +textobjects
-browse            +gettext           +num64             +textprop
++builtin_terms    -hangul_input      +packages          +timers
+byte_offset       +iconv             +path_extra        +title
+channel           +insert_expand     -perl              -toolbar
+cindent           +job               +persistent_undo   +user_commands
-clientserver      +jumplist          +postscript        +vartabs
-clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +virtualedit
+cmdline_hist      +langmap           -python            +visual
+cmdline_info      +libcall           +python3           +visualextra
+comments          +linebreak         +quickfix          +viminfo
+conceal           +lispindent        +reltime           +vreplace
+cryptv            +listcmds          +rightleft         +wildignore
+cscope            +localmap          -ruby              +wildmenu
+cursorbind        -lua               +scrollbind        +windows
+cursorshape       +menu              +signs             +writebackup
+dialog_con        +mksession         +smartindent       -X11
+diff              +modify_fname      +sound             -xfontset
+digraphs          +mouse             +spell             -xim
-dnd               -mouseshape        +startuptime       -xpm
-ebcdic            +mouse_dec         +statusline        -xsmp
+emacs_tags        +mouse_gpm         -sun_workshop      -xterm_clipboard
+eval              -mouse_jsbterm     +syntax            -xterm_save
+ex_extra          +mouse_netterm     +tag_binary        
+extra_search      +mouse_sgr         -tag_old_static    
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -Wdate-time  -g -O2 -fdebug-prefix-map=/build/vim-9EpYYi/vim-8.1.2269=. -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux  -lcanberra -lacl -lattr -lgpm -ldl     -L/usr/lib/python3.8/config-3.8-x86_64-linux-gnu -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm      
ubuntu@instance-02:~$ cat .vimrc 
highlight Comment ctermfg=6
inoremap :setl pastegi+:setl nopastegi
<!-- gh-comment-id:1091734001 --> @PaTTeeL commented on GitHub (Apr 7, 2022): > 请问连接什么服务器?vim版本? 这样可以吗? ``` ubuntu@instance-01:~$ uname -a Linux instance-01 5.13.0-1021-oracle #26~20.04.1-Ubuntu SMP Mon Mar 7 14:26:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ``` ``` ubuntu@instance-01:~$ vim --version VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 01 2022 09:16:32) Included patches: 1-2269, 3612, 3625, 3669, 3741 Modified by team+vim@tracker.debian.org Compiled by team+vim@tracker.debian.org Huge version without GUI. Features included (+) or not (-): +acl -farsi -mouse_sysmouse -tag_any_white +arabic +file_in_path +mouse_urxvt -tcl +autocmd +find_in_path +mouse_xterm +termguicolors +autochdir +float +multi_byte +terminal -autoservername +folding +multi_lang +terminfo -balloon_eval -footer -mzscheme +termresponse +balloon_eval_term +fork() +netbeans_intg +textobjects -browse +gettext +num64 +textprop ++builtin_terms -hangul_input +packages +timers +byte_offset +iconv +path_extra +title +channel +insert_expand -perl -toolbar +cindent +job +persistent_undo +user_commands -clientserver +jumplist +postscript +vartabs -clipboard +keymap +printer +vertsplit +cmdline_compl +lambda +profile +virtualedit +cmdline_hist +langmap -python +visual +cmdline_info +libcall +python3 +visualextra +comments +linebreak +quickfix +viminfo +conceal +lispindent +reltime +vreplace +cryptv +listcmds +rightleft +wildignore +cscope +localmap -ruby +wildmenu +cursorbind -lua +scrollbind +windows +cursorshape +menu +signs +writebackup +dialog_con +mksession +smartindent -X11 +diff +modify_fname +sound -xfontset +digraphs +mouse +spell -xim -dnd -mouseshape +startuptime -xpm -ebcdic +mouse_dec +statusline -xsmp +emacs_tags +mouse_gpm -sun_workshop -xterm_clipboard +eval -mouse_jsbterm +syntax -xterm_save +ex_extra +mouse_netterm +tag_binary +extra_search +mouse_sgr -tag_old_static system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" defaults file: "$VIMRUNTIME/defaults.vim" fall-back for $VIM: "/usr/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wdate-time -g -O2 -fdebug-prefix-map=/build/vim-9EpYYi/vim-8.1.2269=. -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lcanberra -lacl -lattr -lgpm -ldl -L/usr/lib/python3.8/config-3.8-x86_64-linux-gnu -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm ``` ``` ubuntu@instance-02:~$ cat .vimrc highlight Comment ctermfg=6 inoremap :setl pastegi+:setl nopastegi ```
Author
Owner

@zxdong262 commented on GitHub (Dec 24, 2023):

可以试试最新版本吗?

<!-- gh-comment-id:1868614943 --> @zxdong262 commented on GitHub (Dec 24, 2023): 可以试试最新版本吗?
Author
Owner

@PaTTeeL commented on GitHub (Jan 28, 2024):

可以试试最新版本吗?

嗯嗯,试过可以正常使用退格键了

<!-- gh-comment-id:1913581774 --> @PaTTeeL commented on GitHub (Jan 28, 2024): > 可以试试最新版本吗? 嗯嗯,试过可以正常使用退格键了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1560
No description provided.