アップグレード後に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、+挿入を押します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 の関連する変更は文書にのみ使用されます (よくある質問を参照)。私のプログラムはコントロール-Iとタブをどのように区別しますか?)。 vimの最近の変更が有効になっています。modifyOtherKeysxterm機能。ブラームは問題を解決しました。十月(まだ「8.1」より遅い)。

おすすめ記事