업그레이드 후 vim의 Ctrl-Backspace가 손상됨

업그레이드 후 vim의 Ctrl-Backspace가 손상됨

FreeBSD에서 xterm다음 설정을 사용하면 vim은 ctrl+ ("Control+Backspace")를 누른 후 마지막 단어를 삭제합니다 :

set backspace=indent,eol,start
inoremap <C-?> <C-W>
cnoremap <C-?> <C-W>

어떤 이유로든 마지막 시스템 업그레이드 이후에는 이 기능이 더 이상 작동하지 않습니다. 대신 vim이 해당 내용을 ^?문서에 삽입하게 됩니다.

.vim 내부에서 vim을 사용하면 예상대로 작동합니다 screen.

노트:

  • ctrl+ v, +를 눌러 xterm 아래 vim에 삽입합니다 ctrl.?^[[27;6;63~
  • 화면 아래 vim에서 ctrl+ v, +Insert를 누릅니다 ctrl.?^?

vim --version다음을 제공합니다:

VIM - Vi IMproved 8.1 (2018 May 18, compiled Nov 24 2019 15:10:11)
Included patches: 1-2237
Compiled by root@120amd64-default-job-19
Huge version with GTK3 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_gui    +mksession         +smartindent       +X11
+diff              +modify_fname      -sound             -xfontset
+digraphs          +mouse             +spell             +xim
+dnd               +mouseshape        +startuptime       +xpm
-ebcdic            +mouse_dec         +statusline        +xsmp_interact
+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    

ctrlvim에서 +가 마지막 단어를 제거 하도록 이 문제를 해결하는 방법에 대한 아이디어가 있습니까 ?

답변1

^[[27;6;63~xterm 같은데다른 키 수정기능, 이것은 최근이 아닙니다.

이 점에 있어서 vim은 최근에 변경되었지만 xterm은 변경되지 않았기 때문에 이것은 이상합니다. 질문에는 다음이 언급되어 있습니다.

VIM - Vi IMproved 8.1 (2018 May 18, compiled Nov 24 2019 15:10:11)

그러나 xterm 버전에 대한 언급은 없습니다. xterm의 관련 변경 사항은 문서용으로만 사용됩니다(FAQ 참조).내 프로그램은 컨트롤-I와 탭을 어떻게 구별합니까?). vim의 최근 변경 사항이 켜져 있습니다.modifyOtherKeysxterm 기능. 브람이 문제를 해결했어요십월(아직 "8.1"보다 늦음).

관련 정보