2016-07-09 8 views
1

私はset mouse=aでターミナルベースのvim(gvimではなく)を使用しています。homebrewのvimでmouseshapeを有効にするにはどうすればよいですか?

マウスカーソルの形を変更したいが、mouseshapeは自作のvimでは有効になっていない。 homebrewを使用して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 
+0

しようとしたしましたか? – SibiCoder

+1

@SibiCoderすべてのモードでマウスを使用したい – KiYugadgeter

+0

できません。カーソルの形状/色は、Vimではなく端末エミュレータによって処理されます。 – romainl

答えて

1

これは不可能です。 mouseshape機能は、WindowsまたはX11ビルドでのみ使用できます。ドキュメントでは、どのモードでどの図形を使用できるかについて説明しています。そのリストにはWin32とX11だけが表示されます。

mouseモードがアクティブなときにマウスカーソルが端末の形状を変えますが、質問しているように、それをモードごとに制御することはできません。 :help 'mouseshapeから

:あなたは、マウス= RまたはVを設定

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. 
関連する問題