Skip to content

Instantly share code, notes, and snippets.

@bluegraybox
Created July 22, 2011 19:42
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 bluegraybox/1100253 to your computer and use it in GitHub Desktop.
Save bluegraybox/1100253 to your computer and use it in GitHub Desktop.
Basic Vim config
set nocompatible
" Don't use Ex mode, use Q for formatting
map Q gq
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
highlight Search ctermbg=7
" set t_kb=^?
fixdel
" source $VIMRUNTIME/vimrc_example.vim
behave xterm
set selectmode=mouse
set nobackup
set nowritebackup
set ruler
set autoindent
set tabstop=4
set softtabstop=4
set expandtab
set shiftwidth=4
set textwidth=0
set backspace=indent,eol,start
set guifont=Lucida\ Console
au BufRead * loadview
au BufWrite * mkview
au BufUnload * mkview
set statusline=%F%y%r%m%l,%c-%p
set showcmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment