Created
September 7, 2012 18:16
-
-
Save fivetanley/3668315 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 encoding=utf-8 | |
set fillchars+=stl:\ ,stlnc:\ | |
set nocp | |
" Vundle packages | |
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
" Automatically indent based on filetype. | |
" Solarized Theme | |
Bundle 'altercation/vim-colors-solarized' | |
" Markdown | |
Bundle 'tpope/vim-markdown' | |
" Enhanced JavaScript Syntax | |
Bundle 'jelera/vim-javascript-syntax' | |
" JSON syntax | |
Bundle 'JSON.vim' | |
au BufRead,BufNewFile *.json set filetype=json | |
" Coffee-Script syntax file | |
Bundle 'kchmck/vim-coffee-script' | |
" Vim Powerline | |
Bundle 'Lokaltog/vim-powerline' | |
let g:Powerline_symbols = 'unicode' | |
" Bundle 'scrooloose/nerdtree' | |
" Bundle 'jistr/vim-nerdtree-tabs' | |
" JavaScript Strict Mode Helper | |
Bundle 'scrooloose/syntastic' | |
" Tomorrow theme. | |
Bundle 'jasonkuhrt/Tomorrow-Theme' | |
" YAML | |
Bundle 'ingydotnet/yaml-vim' | |
" Ruby | |
Bundle 'vim-ruby/vim-ruby' | |
" RSpec | |
Bundle 'mikbe/rspec.vim' | |
" Regular configuration | |
" Cucumber | |
Bundle 'tpope/vim-cucumber' | |
" Automated omnicompletion | |
" Tag support | |
Bundle 'majutsushi/tagbar' | |
nmap <F8> :TagbarToggle<CR> | |
" Theme settings | |
" Show line numbering | |
set number | |
" Show current line cursor | |
set cursorline | |
" backup to ~/.tmp | |
set backup | |
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp | |
set backupskip=/tmp/*,/private/tmp/* | |
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp | |
set writebackup | |
" NERDTree auto start | |
" au VimEnter * NERDTree | wincmd p | |
"disable linux/windows menu shortcuts so we can map alt. | |
nmap <C-S-Tab> :tabprevious<CR> | |
imap <C-S-Tab> :tabprevious<CR> | |
nmap <C-Tab> :tabnext<CR> | |
imap <C-Tab> :tabnext<CR> | |
nmap <C-t> :tabnew<CR> | |
imap <C-t> :tabnew<CR> | |
" Snippets | |
nmap <C-Tab> :tabnext<CR> | |
Bundle 'UltiSnips' | |
let g:UltiSnipsUsePythonVersion='2' | |
let g:UltiSnipsExpandTrigger='<tab>' | |
let g:UltiSnipsJumpForwardTrigger='<tab>' | |
let g:UltiSnipsJumpBackwardTrigger='<s-tab>' | |
" Jasmine syntax highlighting snippets | |
Bundle 'claco/jasmine.vim' | |
let g:jasmine_use_templates="" | |
" Surround.vim by tpope | |
Bundle 'tpope/vim-surround' | |
" EasyMotion | |
Bundle 'Lokaltog/vim-easymotion' | |
" leader key | |
let mapleader=',' | |
"open vimrc with <leader>v | |
nmap <leader>v :tabedit $MYVIMRC | |
"tComment | |
Bundle 'tomtom/tcomment_vim' | |
map <leader>c <c-_><c-_> | |
Bundle 'bclear' | |
" automatically load vimrc | |
" if has( 'autocmd' ) | |
" autocmd bufwritepost ~/.vimrc source $MYVIMRC | |
" endif | |
Bundle 'wincent/Command-T' | |
Bundle 'vilight.vim' | |
Bundle 'ricardovaleriano/vim-github-theme' | |
autocmd Filetype javascript setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype c setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype coffee setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype cucumber setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype ruby setlocal ts=2 sts=2 sw=2 | |
autocmd Filetype javascript noremap <C-c> <Esc>:!cucumber.js<CR> | |
autocmd Filetype coffee noremap <C-c> <Esc>:!cucumber.js<CR> | |
autocmd Filetype cucumber noremap <C-c> <Esc>:!cucumber.js<CR> | |
noremap <C-c> <Esc>:!cucumber.js<CR> | |
set ts=2 sts=2 sw=2 | |
set expandtab | |
Bundle 'jaywilliams/vim-vwilight' | |
Bundle 'twilight256.vim' | |
Bundle 'derekwyatt/vim-scala' | |
Bundle 'nono/vim-handlebars' | |
Bundle 'noahfrederick/Hemisu' | |
Bundle 'jonathanfilip/vim-lucius' | |
Bundle 'Zenburn' | |
Bundle 'rainux/vim-desert-warm-256' | |
filetype plugin indent on " required by Vundle! | |
noremap <leader>t <Esc>:CommandTFlush<CR>:CommandT<CR> | |
noremap <C-p> $a<space><Esc>p | |
noremap <C-y> ^y$ | |
" test runners | |
" mocha | |
noremap <C-m> <Esc>:w<CR><ESC>!mocha <C-r>%<CR> | |
set noerrorbells visualbell t_vb= | |
set backspace=indent,eol,start | |
set list | |
set listchars=trail:~ | |
set wildignore+=node_modules,.git | |
set colorcolumn=80 | |
colorscheme hemisu | |
set background=dark | |
syntax enable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment