Skip to content

Instantly share code, notes, and snippets.

@alexyoung
Created May 16, 2012 11:12
Show Gist options
  • Save alexyoung/2709590 to your computer and use it in GitHub Desktop.
Save alexyoung/2709590 to your computer and use it in GitHub Desktop.
mouse-vimrc
" vim:fdm=marker
" Editor basics {{{
" Behave like Vim instead of Vi
set nocompatible
" Show a status line
set laststatus=2
" Show the current cursor position
set ruler
" Enable syntax highlighting
syn on
" }}}
" Mouse {{{
" Send more characters for redraws
set ttyfast
" Enable mouse use in all modes
set mouse=a
" Set this to the name of your terminal that supports mouse codes.
" Must be one of: xterm, xterm2, netterm, dec, jsbterm, pterm
set ttymouse=xterm2
" }}}
" Disable arrow keys {{{
noremap <Up> <NOP>
inoremap <Down> <NOP>
inoremap <Left> <NOP>
inoremap <Right> <NOP>
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
" }}}
@stefco
Copy link

stefco commented Apr 19, 2015

Thanks for putting this up!

@lf-
Copy link

lf- commented May 15, 2015

Line 28: I think I see a typo. Shouldn't that be inoremap?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment