Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
134 lines (108 sloc) 2.94 KB
" vim600: set foldmethod=marker:
" general setup
let s:cur_rtp = &runtimepath
let s:new_rtp = "~/.dotfiles/vim," . s:cur_rtp . ",~/.dotfiles/vim/after"
let &runtimepath = s:new_rtp
if has('win32')
set shell=bash.exe
endif
set t_Co=256
call pathogen#infect()
call pathogen#helptags()
" if we're on a GUI or in a good xterm, use the mouse
set mouse=a
set ttymouse=xterm2
" supertab
let g:SuperTabDefaultCompletionType = "context"
" python
let python_highlight_all = 1
" tagbar
map <Leader>tt :TagbarToggle<CR>
let g:tagbar_autoclose = 1
let g:tagbar_autofocus = 1
let g:tagbar_left = 1
" tab complete
set wildmenu
set wildmode=longest,list:longest
set wildignore+=*.pyc,*.pyo
" file information
set modeline
set number
set fileformats=unix,dos,mac
set backupcopy=yes
set nobackup
set writebackup
" viminfo
" 200 files marks, global marks, 50 lines per register, no hlsearch
" 10 search lines, all saved in ~/.viminfo
set viminfo='200,f1,\"50,h,/10,:0,@0,n~/.viminfo
" session options
set sessionoptions=curdir,folds,globals,slash,unix,tabpages
" search options
set incsearch
set hlsearch
set ignorecase
set smartcase
" editing options
set hidden
set laststatus=2
set title
set titlestring=VIM\:\ %f%m%h
set showmatch
set shiftwidth=2
set softtabstop=2
set tabstop=8
set expandtab
set autoindent
set smartindent
set cinoptions=(0,W1s
set showcmd
syntax on
set background=dark
colorscheme molokai
filetype indent on
filetype plugin on
set statusline=%f%m%r%h%w%=%l,%c/%L\ %y
set statusline+=%{fugitive#statusline()}
set statusline+=%{SyntasticStatuslineFlag()}
if exists('+colorcolumn')
set colorcolumn=80
endif
" CtrlP
let g:ctrlp_working_path_mode = 'raw'
" leaderpp is to help retrain away from that keystroke
nnoremap <Leader>pp <Nop>
nnoremap <Leader>ff :<C-U>CtrlP<CR>
nnoremap <Leader>ft :<C-U>CtrlPTag<CR>
nnoremap <Leader>fb :<C-U>CtrlPBuffer<CR>
let g:syntastic_python_checkers = ['python', 'prospector', 'pyflakes']
let home_wiki = {}
let home_wiki.path = '~/Dropbox/Notes/wiki/'
let home_wiki.path_html = '~/Dropbox/Notes/html/'
let home_wiki.auto_export = 1
let ccap_wiki = {}
let ccap_wiki.path = '~/Dropbox/CCAP/wiki/'
let ccap_wiki.path_html = '~/Dropbox/CCAP/html/'
let ccap_wiki.auto_export = 1
let g:vimwiki_list = [ home_wiki, ccap_wiki ]
let g:tagbar_type_vimwiki = {
\ 'ctagstype' : 'vimwiki',
\ 'kinds' : [ 'h:header', ],
\ 'sort' : 0
\ }
let g:ctrlp_user_command = {
\ 'types': {
\ 1: ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others'],
\ 2: ['.hg', 'hg --cwd %s locate -I .'],
\ },
\ 'fallback': 'find %s -type f'
\ }
let g:rails_gem_projections = {
\ "fabrication": {
\ "spec/fabricators/*_fabricator.rb": {
\ "command": "fabricator",
\ "affinity": "model",
\ "alternate": "app/models/%s.rb",
\ "related": "db/schema.rb#%p",
\ "test": "spec/models/%s_spec.rb",
\ "template": "Fabricator(:%s) do\nend"}}}
Something went wrong with that request. Please try again.