Created
May 3, 2014 07:38
-
-
Save vindir/0405871a05d4ff001176 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
| jowens@Amdahl-2:~/Workspace/mojolingo/repos/punchblock/lib/punchblock$ cat ~/.vimrc | |
| " Vundle Initialization " | |
| """"""""""""""""""""""""" | |
| set nocompatible " be iMproved | |
| filetype off " required! | |
| set rtp+=~/.vim/bundle/vundle | |
| call vundle#rc() | |
| Bundle 'gmarik/vundle' | |
| Bundle 'altercation/vim-colors-solarized' | |
| Bundle 'jpo/vim-railscasts-theme' | |
| Bundle 'jnurmine/Zenburn' | |
| Bundle 'tomasr/molokai' | |
| Bundle 'vim-scripts/phd' | |
| Bundle 'djjcast/mirodark' | |
| Bundle 'jlanzarotta/bufexplorer' | |
| " Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} | |
| Bundle 'bling/vim-airline' | |
| Bundle 'Syntastic' | |
| Bundle 'airblade/vim-gitgutter' | |
| Bundle 'chrisbra/csv.vim' | |
| Bundle 'majutsushi/tagbar' | |
| Bundle 'kien/ctrlp.vim' | |
| Bundle 'rodjek/vim-puppet' | |
| Bundle 'tpope/vim-fugitive' | |
| Bundle 'nanotech/jellybeans.vim' | |
| Bundle 'chriskempson/tomorrow-theme' | |
| Bundle 'godlygeek/tabular' | |
| filetype plugin indent on " required! | |
| " Core Configuration " | |
| """""""""""""""""""""" | |
| " General Settings | |
| set path=/Users/jowens/Workspace | |
| " Spacing/Presentation | |
| set number | |
| set ruler | |
| set bs=2 " Backspace handling - :h bs | |
| set textwidth=79 " lines longer than 79 columns will be broken | |
| set tabstop=2 " an hard TAB displays as 4 columns | |
| set softtabstop=2 " insert/delete 4 spaces when hitting a TAB/BACKSPACE | |
| set shiftwidth=2 " operation >> indents 4 columns; << unindents 4 columns | |
| set scrolloff=7 " margin of space above/below cursor | |
| set expandtab " insert spaces when hitting TABs | |
| set shiftround " round indent to multiple of 'shiftwidth' | |
| set autoindent " align the new line indent with the previous line | |
| set laststatus=2 " always display status line | |
| set term=xterm-256color | |
| set encoding=utf-8 | |
| set termencoding=utf-8 | |
| set t_Co=256 | |
| set fillchars+=stl:\ ,stlnc:\ | |
| " Syntax & Colorschemes | |
| syntax enable | |
| set background=dark | |
| colorscheme railscasts | |
| " Keyboard handling | |
| set paste | |
| let mapleader = ',' | |
| nnoremap <leader>f :CtrlP<cr> | |
| nnoremap <leader>t :CtrlPTag<cr> | |
| nnoremap <leader>b :CtrlPBuffer<cr> | |
| nnoremap <leader>a :CtrlPMixed<cr> | |
| nnoremap <leader>m :CtrlPMRU<cr> | |
| nnoremap <leader>c :bdelete<cr> | |
| nnoremap <silent> <Leader>. :TagbarToggle<CR> | |
| " Move to the previous buffer with "gp" | |
| nnoremap gp :bp<CR> | |
| " Move to the next buffer with "gn" | |
| nnoremap gn :bn<CR> | |
| " List all possible buffers with "gl" | |
| nnoremap gl :ls<CR> | |
| " List all possible buffers with "gb" and accept a new buffer argument [1] | |
| nnoremap gb :ls<CR>:b | |
| nnoremap <leader>j <PageDown> | |
| nnoremap <leader>k <PageUp> | |
| nnoremap <leader>w :w<cr> | |
| " Remap Esc to ;j for exiting insert mode | |
| inoremap jj <ESC> | |
| " Airline Config " | |
| """""""""""""""""" | |
| let g:airline_powerline_fonts = 1 | |
| " enable buffer list | |
| let g:airline#extensions#tabline#enabled = 1 | |
| " Show just the filename | |
| " let g:airline#extensions#tabline#fnamemod = ':t' | |
| let g:airlinesymbols = {} | |
| let g:airlineleftsep = '»' | |
| let g:airlinerightsep = '«' | |
| let g:airlinesymbols.linenr = '¶' | |
| let g:airlinesymbols.branch = 'Þ' | |
| let g:airlinesymbols.paste = 'Þ' | |
| let g:airlinesymbols.whitespace = '.' | |
| " Tagbar Config " | |
| """"""""""""""""" | |
| " Tagbar Config :: Markdown Ctags | |
| let g:tagbar_type_markdown = { | |
| \ 'ctagstype' : 'markdown', | |
| \ 'kinds' : [ | |
| \ 'h:Heading_L1', | |
| \ 'i:Heading_L2', | |
| \ 'k:Heading_L3' | |
| \ ] | |
| \ } | |
| " Tagbar Config :: Puppet Ctags | |
| let g:tagbar_type_puppet = { | |
| \ 'ctagstype': 'puppet', | |
| \ 'kinds': [ | |
| \'c:class', | |
| \'s:site', | |
| \'n:node', | |
| \'d:definition' | |
| \] | |
| \} | |
| " CtrlP Config " | |
| """""""""""""""" | |
| " Set no max file limit | |
| let g:ctrlp_max_files = 0 | |
| " Search from current directory instead of project root | |
| " let g:ctrlp_working_path_mode = 0 | |
| let g:ctrlp_working_path_mode = 'rc' | |
| " Ignore these directories | |
| set wildignore+=*/out/** | |
| set wildignore+=*/vendor/** | |
| " Search in certain directories a large project (hardcoded for now) | |
| " cnoremap %proj <c-r>=expand('~/Workspace')<cr> | |
| " ga = go api | |
| " map <Leader>ga :CtrlP %proj/api/<cr> | |
| " gf = go frontend | |
| " map <Leader>gf :CtrlP %proj/some/long/path/to/frontend/code/<cr> | |
| jowens@Amdahl-2:~/Workspace/mojolingo/repos/punchblock/lib/punchblock$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment