Skip to content

Commit

Permalink
Enable the mouse
Browse files Browse the repository at this point in the history
Secretly, Vim is able to understand mouse clicks, scrolling,
highlighting, and just about everything you'd be familiar with in an IDE
or GUI text editor. While there are times when using the keyboard is the
absolute fastest way to get something done, there are plent of other
times where being able to scroll through Vim or use the mouse is pretty
handy.
  • Loading branch information
jez committed Feb 25, 2015
1 parent dff7da3 commit fc77b04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vimrc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ set incsearch
set hlsearch

syntax on

set mouse=a

4 comments on commit fc77b04

@jez
Copy link
Owner Author

@jez jez commented on fc77b04 Feb 26, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(<-- prev step) ... (next step -->)

If the mouse doesn't work even after you've added this setting, that means you'll have to enable xterm mouse reporting in your terminal emulator. This is probably buried in your settings somewhere; let me know if you're having trouble finding it.

@kvsankar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any ideas how to get mouse scrolling working in ConEmu and Cygwin vim on Windows?

@jez
Copy link
Owner Author

@jez jez commented on fc77b04 Mar 1, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally have never used either, sorry. In fact, my knowledge of Windows development tools is extremely minimal. Your best bet is to Google for some permutation of "conemu cygwin xterm mouse reporting" and to have patience. If you figure it out be sure to post it back here!

@pankgeorg
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From this super question

If you want to copy and paste text from outside, as if mouse=a was not enabled, press shift (Option/Alt at MACOSX)
-Francois

Please sign in to comment.