Skip to content

Instantly share code, notes, and snippets.

@alexyoung
Created May 11, 2012 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexyoung/e5d5ce6488ed066a657d to your computer and use it in GitHub Desktop.
Save alexyoung/e5d5ce6488ed066a657d to your computer and use it in GitHub Desktop.
usevim vimrc
" This file can be loaded using: vim -u usevim-vimrc
" 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
" 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment