如何在自制的vim中启用mouseshape?
我使用的鼠标带有基于终端的vim(不是gvim)和如何在自制的vim中启用mouseshape?,vim,mouse-cursor,Vim,Mouse Cursor,我使用的鼠标带有基于终端的vim(不是gvim)和set mouse=a 我想更改鼠标光标形状,但在自制vim中未启用mouseshape。如何使用自制软件安装启用了mouseshape功能的vim 这是我的vim--version输出的一部分: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 8 2016 21:15:30) MacOS X (unix) version Included patches: 1-2000 Compiled by
set mouse=a
我想更改鼠标光标形状,但在自制vim中未启用mouseshape
。如何使用自制软件安装启用了mouseshape
功能的vim
这是我的vim--version
输出的一部分:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jul 8 2016 21:15:30)
MacOS X (unix) version
Included patches: 1-2000
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path -mouse_sysmouse -tag_any_white
+arabic +find_in_path +mouse_urxvt -tcl
+autocmd +float +mouse_xterm +termguicolors
-balloon_eval +folding +multi_byte +terminfo
-browse -footer +multi_lang +termresponse
++builtin_terms +fork() -mzscheme +textobjects
+byte_offset -gettext +netbeans_intg +timers
+channel -hangul_input +num64 +title
+cindent +iconv +packages -toolbar
-clientserver +insert_expand +path_extra +user_commands
+clipboard +job +perl +vertsplit
+cmdline_compl +jumplist +persistent_undo +virtualedit
+cmdline_hist +keymap +postscript +visual
+cmdline_info +langmap +printer +visualextra
+comments +libcall +profile +viminfo
+conceal +linebreak -python +vreplace
+cryptv +lispindent +python3 +wildignore
+cscope +listcmds +quickfix +wildmenu
+cursorbind +localmap +reltime +windows
+cursorshape +lua +rightleft +writebackup
+dialog_con +menu +ruby -X11
+diff +mksession +scrollbind -xfontset
+digraphs +modify_fname +signs -xim
-dnd +mouse +smartindent -xsmp
-ebcdic -mouseshape +startuptime -xterm_clipboard
+emacs_tags +mouse_dec +statusline -xterm_save
+eval -mouse_gpm -sun_workshop -xpm
+ex_extra -mouse_jsbterm +syntax
+extra_search +mouse_netterm +tag_binary
+farsi +mouse_sgr +tag_old_static
这是不可能的。
mouseshape
功能仅在Windows或X11版本中可用,如文档中所示,其中讨论了哪些形状在哪些模式下可用。该列表中仅显示Win32和X11
当鼠标
模式处于活动状态时,鼠标光标确实会在终端Vim中改变形状,但您无法按照您询问的方式控制每个模式
来自:help'鼠标形状
:
该形状是以下形状之一:
我的名字看起来像
w x箭头普通鼠标指针
w x空白,完全没有指针(小心使用!)
w x梁工字钢
w x上下尺寸调整箭头
w x左右尺寸箭头
w x busy系统通常的忙指针
w x no系统通常的“无输入”指针
x UDSIZE表示上下调整大小
x LRSIZE表示左右调整大小
像一个大而细的x十字线+
x手1黑手
x手2白手
x铅笔你用什么写字
大问题?
x向右上箭头指向右上的箭头
w x向上箭头指向上的箭头
x任意X11指针编号(参见X11/cursorfont.h)
如果形状可用于Win32,则“avail”列包含一个“w”,
x代表X11。
任何未指定的模式或不可用的形状都使用普通鼠标
指针。
你试过设置mouse=r或v吗?@SibiCoder我想在所有模式下使用鼠标你不能。光标形状/颜色由终端仿真器处理,而不是由Vim处理。
The shape is one of the following:
avail name looks like
w x arrow Normal mouse pointer
w x blank no pointer at all (use with care!)
w x beam I-beam
w x updown up-down sizing arrows
w x leftright left-right sizing arrows
w x busy The system's usual busy pointer
w x no The system's usual 'no input' pointer
x udsizing indicates up-down resizing
x lrsizing indicates left-right resizing
x crosshair like a big thin +
x hand1 black hand
x hand2 white hand
x pencil what you write with
x question big ?
x rightup-arrow arrow pointing right-up
w x up-arrow arrow pointing up
x <number> any X11 pointer number (see X11/cursorfont.h)
The "avail" column contains a 'w' if the shape is available for Win32,
x for X11.
Any modes not specified or shapes not available use the normal mouse
pointer.