Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
vim [2018/07/16 10:28] sasukelricvim [2018/07/16 10:33] (Version actuelle) sasukelric
Ligne 1: Ligne 1:
 ===== VIM ===== ===== VIM =====
 +
 +=== Mouse ===
 +
 +    Enable the use of the mouse.  Only works for certain terminals
 +    (xterm, MS-DOS, Win32 |win32-mouse|, QNX pterm, *BSD console with
 +    sysmouse and Linux console with gpm).  For using the mouse in the
 +    GUI, see |gui-mouse|.
 +    The mouse can be enabled for different modes:
 +        n   Normal mode
 +        v   Visual mode
 +        i   Insert mode
 +        c   Command-line mode
 +        h   all previous modes when editing a help file
 +        a   all previous modes
 +        r   for |hit-enter| and |more-prompt| prompt
 +    Normally you would enable the mouse in all four modes with:
 +        :set mouse=a
 +    When the mouse is not enabled, the GUI will still use the mouse for
 +    modeless selection.  This doesn't move the text cursor.
 +    
 +
 +Edit <sup> **/usr/share/vim/vim80/defaults.vim** </sup>
 +
 +Change the line
 +<code>
 +if has('mouse')
 +  set mouse=a
 +endif
 +</code>
 +to
 +<code>
 +if has('mouse')
 +  set mouse=r
 +endif
 +</code>
  
 === TIPS === === TIPS ===

QR Code
QR Code vim (generated for current page)