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 /usr/share/vim/vim80/defaults.vim

Change the line

if has('mouse')
  set mouse=a
endif

to

if has('mouse')
  set mouse=r
endif

TIPS

Enlevé les espaces en trop à la fin d'une ligne

 :%s/\s\+$//e 

En début de ligne

 :%s/^\s\+//e 

QR Code
QR Code vim (generated for current page)