vim - GNU screen 和 Vim : Adjusting the split window buffer size with mouse

标签 vim gnu-screen

使用 Vim 在 GNU 屏幕上工作时,我无法使用鼠标调整拆分窗口的大小。所有其余的鼠标操作在 Vim 中都可以正常工作(使用鼠标滚动、选择文本等)。我通常有 se mouse=n在我的 .vimrc .在 GNU 屏幕之外调整窗口缓冲区大小可以正常工作。

这是vim信息:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan 19 2012 18:05:29)
Included patches: 1-401
Compiled by root@arun-mu
Normal version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments -conceal +cryptv +cscope +cursorbind
+cursorshape +dialog_con +diff +digraphs -dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path +find_in_path +float +folding -footer +fork() +gettext -hangul_input -iconv
+insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape -mouse_dec -mouse_gpm -mouse_jsbterm
-mouse_netterm -mouse_sysmouse +mouse_xterm -mouse_urxvt -multi_byte +multi_lang -mzscheme +netbeans_intg +path_extra -perl +persistent_undo +postscript +printer -profile -python -python3
+quickfix +reltime -rightleft -ruby +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
+textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset -xim +xsmp_interact
+xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L/usr/local/lib -Wl,--as-needed -o vim    -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE -lm -lncurses -lnsl

GNU 屏幕信息:
4.00.03 (FAU) 23-Oct-06

最佳答案

这对我有用。鼠标在 GNU 屏幕中的 vim 中完全处于事件状态。

:set ttymouse=xterm2

关于vim - GNU screen 和 Vim : Adjusting the split window buffer size with mouse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8939043/

相关文章:

json - 如何在 Vim 中保存时自动格式化 JSON

Vim - 在插入模式下删除行

xcode - 从命令行从 XCode 中提取构建标志

python - 设置 pyflakes 的首选项(在 vim 中使用 python-mode)

linux - 可以阅读 linux gnu-screen 的最后一行吗?

terminal - 如何在Debian下在GNU screen 中获得40多个窗口

c++ - 在 C/C++ 中读取/写入 screen 进程

node.js - 配置 monitrc 以监视 Node js 应用程序进程,无法找到与 screen ec2 linux 一起运行的 Node 应用程序 pidfile

vim - 如何更改 Vim 中快速修复窗口的默认位置?

python - python脚本失败时记录