Skip to content

Instantly share code, notes, and snippets.

@jamesflorentino
Created February 2, 2012 15:28
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 jamesflorentino/1723991 to your computer and use it in GitHub Desktop.
Save jamesflorentino/1723991 to your computer and use it in GitHub Desktop.
" Configuration file for vim
set modelines=0 " CVE-2007-2438
" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible " Use Vim defaults instead of 100% vi compatibility
set backspace=2 " more powerful backspacing
" Don't write backup file if vim is being called by "crontab -e"
au BufWrite /private/tmp/crontab.* set nowritebackup
" Don't write backup file if vim is being called by "chpass"
au BufWrite /private/etc/pw.* set nowritebackup
set number
set ai
set history=100
set tabstop=2
set softtabstop=2
set shiftwidth=2
set showmatch
set cursorline
set encoding=utf-8
" stop littering files
set nobackup
set noswapfile
" set list
set listchars=tab:▸\ ,eol:¬
set list
" syntax highlighting
syntax on
set t_Co=256
color jellybeans
" plugins
filetype plugin on
filetype plugin indent on
autocmd BufRead *.as set filetype=actionscript
au! BufRead,BufNewFile *.md set filetype=markdown
map <F2> :set expandtab<CR> :retab!<CR>
map <F3> :set noexpandtab<CR> :retab!<CR>
map <F4> :set list!<CR>
map <F5> :w !pbcopy<CR>
map <F6> :Tab /=<CR>
map <F7> :CoffeeCompile<CR>
set hlsearch
:nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
call pathogen#infect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment