程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了在 vim 的终端模式下将终端内部的默认密钥发送更改为 <C-Q> 而不是 <C-W>大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决在 vim 的终端模式下将终端内部的默认密钥发送更改为 <C-Q> 而不是 <C-W>?

开发过程中遇到在 vim 的终端模式下将终端内部的默认密钥发送更改为 <C-Q> 而不是 <C-W>的问题如何解决?下面主要结合日常开发的经验,给出你关于在 vim 的终端模式下将终端内部的默认密钥发送更改为 <C-Q> 而不是 <C-W>的解决方法建议,希望对你解决在 vim 的终端模式下将终端内部的默认密钥发送更改为 <C-Q> 而不是 <C-W>有所启发或帮助;

我想使用 <C-Q> 而不是 <C-W> 将密钥发送到在 vim 中打开的终端。当我在 vim 中运行命令 :set termwinkey=<C-Q> 时,我收到错误消息 E518: UnkNown option: termwinkey=<C-q>。我可以在 vim 中打开终端。那么为什么 vim 不识别这个选项?

[编辑] :version 的输出

VIM - Vi IMproved 8.0 (2016 Sep 12,compiled Oct 13 2020 15:49:09)
Included patches: 1-1453
ModifIEd by pkg-vim-maintainers@Lists.alioth.debian.org
compiled by pkg-vim-maintainers@Lists.alioth.debian.org
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl               +clIEntserver      +dialog_con_gui    +find_in_path      +keymap            +modify_fname      +multi_byte        +profile           +statusline        +textobjects       +wildignore
+arabic            +clipboard         +diff              +float             +lambda            +mouse             +multi_lang        -python            -sun_workshop      +timers            +wildmenu
+autOCMd           +cmdline_compl     +digraphs          +folding           +langmap           +mouseshape        -mzscheR_247_11845@e          +python3           +Syntax            +title             +windows
-autoservername    +cmdline_hist      +dnd               -footer            +libcall           +mouse_dec         +netbeans_intg     +quickfix          +tag_binary        +toolbar           +writeBACkup
+balloon_eval      +cmdline_info      -ebcDic            +fork()            +linebreak         +mouse_gpm         +num64             +reltime           +tag_old_static    +user_commands     +X11
+balloon_eval_term +comments          +emacs_Tags        +gettext           +lispindent        -mouse_Jsbterm     +packages          +rightleft         -tag_any_white     +vertsplit         -xFontset
+browse            +conceal           +eval              -hangul_input      +Listcmds          +mouse_netterm     +path_extra        +ruby              +tcl               +virtualedit       +xim
++builTin_terms    +cryptv            +ex_extra          +iconv             +localmap          +mouse_sgr         +perl              +scrollbind        +termguicolors     +visual            +xpm
+byte_offset       +cscope            +extra_search      +insert_expand     +lua               -mouse_sysmouse    +persistent_undo   +signs             +terminal          +visualextra       +xsmp_interact
+chAnnel           +cursorbind        +farsi             +job               +menu              +mouse_urxvt       +postscript        +smarTindent       +terminfo          +viminfo           +xterm_clipboard
+cindent           +cursorshape       +file_in_path      +jumpList          +mksession         +mouse_xterm       +printer           +startuptime       +termresponse      +vreplace          -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-BACk for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONfig_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Wdate-time  -g -O2 -fdeBUG-prefix-map=/build/vim-EfP9JP/vim-8.0.1453=. -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_sourcE -D_FORTIFY_sourcE=1       
linking: gcc   -l. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,Now -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E  -Wl,Now -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lFontconfig -lfreetype -lSM -liCE -lXpm -lXt -lX11 -lXdmcp -lSM -liCE  -lm -lTinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl  -L/usr/lib -llua5.2 -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/x86_64-linux-gnu/perl/5.26/CORE -lperl -ldl -lm -lpthread -lcrypt  -L/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu -lpython3.6m -lpthread -ldl -lutil -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread -lm -lruby-2.5 -lpthread -lgmp -ldl -lcrypt -lm     

解决方法

您必须将 Vim 更新到 v8.1 或更高版本。

大佬总结

以上是大佬教程为你收集整理的在 vim 的终端模式下将终端内部的默认密钥发送更改为 <C-Q> 而不是 <C-W>全部内容,希望文章能够帮你解决在 vim 的终端模式下将终端内部的默认密钥发送更改为 <C-Q> 而不是 <C-W>所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。