Created
September 27, 2011 15:14
-
-
Save demimismo/1245333 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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