Created
October 28, 2014 20:56
-
-
Save quagliero/0600afd039f622d73ad7 to your computer and use it in GitHub Desktop.
.vimrc
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 " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'gmarik/Vundle.vim' | |
" The following are examples of different formats supported. | |
" Keep Plugin commands between vundle#begin/end. | |
" Auto closing bracket and indenting goodness | |
Plugin 'Raimondi/delimitMate' | |
let delimitMate_expand_cr=1 | |
" Highlight matching html tags | |
Plugin 'gregsexton/MatchTag' | |
" Auto close HTML tags too please | |
Plugin 'vim-scripts/HTML-AutoCloseTag' | |
" And some HTML5 magic | |
Plugin 'othree/html5.vim' | |
" CSS colour highlighting | |
Plugin 'ap/vim-css-color' | |
" Improved JS indendation and syntax support | |
Plugin 'pangloss/vim-javascript' | |
" Syntax for JS libraries like Angular | |
Plugin 'othree/javascript-libraries-syntax.vim' | |
" Angular jump to test/definition goodness | |
Plugin 'burnettk/vim-angular' | |
" Ruby | |
Plugin 'vim-ruby/vim-ruby' | |
" Ruby on Rails | |
Plugin 'tpope/vim-rails' | |
" Lint it baby | |
Plugin 'scrooloose/syntastic' | |
" Gimme that file browsing | |
Plugin 'scrooloose/nerdtree' | |
" plugin on GitHub repo | |
Plugin 'tpope/vim-fugitive' | |
" Tab complete all the things | |
Plugin 'ervandew/supertab' | |
" Nice lil status bar | |
Plugin 'bling/vim-airline' | |
" Twig syntax | |
Plugin 'evidens/vim-twig' | |
" PHP syntax | |
Plugin 'StanAngeloff/php.vim' | |
" L9, required for other including F9 | |
Plugin 'vim-scripts/L9' | |
" For searching | |
Plugin 'rking/ag.vim' | |
" Fuzzy find in file searching | |
Plugin 'kien/ctrlp.vim' | |
" Where to do the searching: | |
" 'c' - the directory of the current file. | |
" 'r' - the nearest ancestor that contains one of these directories or files: .git .hg .svn .bzr _darcs | |
" "'a' - like c, but only if the current working directory outside of CtrlP is not a direct ancestor of the directory of the current file. | |
let g:ctrlp_working_path_mode = 'ra' | |
" Make CtrlP use ag for its searching which is super quick and respects your .gitignore file | |
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' | |
" Make sure we can access all the files and subdirs | |
let g:ctrlp_max_files = 0 | |
let g:ctrlp_max_depth = 20 | |
" Easy Grepping | |
Plugin 'vim-scripts/EasyGrep' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" @Theme | |
set t_Co=256 | |
set background=dark | |
set gfn=Monaco:h12 | |
colorscheme distinguished | |
" @Base | |
syntax on | |
" Indenting stuff | |
set tabstop=4 | |
set expandtab | |
set shiftwidth=4 | |
set autoindent showmode showmatch | |
set smartindent | |
" Show line numbers in gutter | |
set number | |
" Allow stuff to be modified | |
set modifiable | |
" !!!Setting paste is bad, it resets all indenting and softtabs | |
" set paste | |
" No trash files | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
" @Language specific | |
autocmd Filetype ruby setlocal ts=2 sts=2 sw=2 | |
autocmd User Rails let b:surround_{char2nr('-')} = "<% \r %>" " displays <% %> correctly" | |
" @shortcuts keybindings | |
" <leader> is , | |
let mapleader = ',' | |
" open NERDTree with ,n | |
map <Leader>n :NERDTreeToggle<CR> | |
" search in file buffer | |
map <Leader>fb :CtrlPBuffer<CR> | |
" search in files | |
map <Leader>ff :CtrlP<CR> | |
" search all the things | |
map <Leader>f :CtrlPMixed<CR> | |
" Format (auto-indent) the entire bugger | |
map <C-i> gg=G | |
" @Filetypes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment