Skip to content

Instantly share code, notes, and snippets.

@demimismo
Created September 27, 2011 15:14
Show Gist options
  • Save demimismo/1245333 to your computer and use it in GitHub Desktop.
Save demimismo/1245333 to your computer and use it in GitHub Desktop.
set nocompatible " We don't want vi compatibility
syntax on
filetype plugin indent on " Automatically detect file types
colorscheme molokai
set nu " Insert line numbers
set tabstop=2 " Tabs are 2 spaces
set shiftwidth=2 " Tabs under smart indent
set softtabstop=2
set expandtab
set encoding=utf-8
set scrolloff=3
set autoindent
set showmode
set showcmd
set novisualbell " No blinking
set noerrorbells " No noise
set hidden
set wildmenu
set wildmode=list:longest
set showmatch " Show matching brackets.
set matchtime=5 " Bracket blinking.
set ttyfast
set ruler
set backspace=indent,eol,start
set laststatus=2
nnoremap / /\v
vnoremap / /\v
set ignorecase
set smartcase
set gdefault
set incsearch
set showmatch
set hlsearch
nnoremap <leader><space> :noh<cr>
nnoremap <tab> %
vnoremap <tab> %
" Backups & Files
set backup " Enable creation of backup file.
set backupdir=~/.vim/backups " Where backups will go.
set directory=~/.vim/tmp " Where temporary files will go.
set noswapfile " no swap files
" Export current buffer to html
map <LocalLeader>2h :runtime! syntax/2html.vim<CR>
" Leader
let mapleader = ","
" Custom shortcuts
nnoremap <leader>a :Ack
"
let g:miniBufExplMapCTabSwitchBufs = 1
source $VIMRUNTIME/mswin.vim
set rtp+=~/.vim/vundle.git/
call vundle#rc()
" Plugins " {{{
Bundle 'jQuery'
"Bundle "minibufexpl.vim"
Bundle "https://github.com/fholgado/minibufexpl.vim.git"
"Bundle "ack.vim"
Bundle "https://github.com/mileszs/ack.vim.git"
Bundle "https://github.com/tpope/vim-rails.git"
" Snippets
Bundle "http://github.com/gmarik/snipmate.vim.git"
" " }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment