vim-projectionist provides vim-rails-like shortcuts for alternate and related files. It allows users to provide a custom set of "projections" that map filetypes to their alternate and related counterparts. Custom mappings can be declared in a JSON-like syntax. This change provides authors of gems and other non-Rails Ruby projects with access to the alternate file `:A` shortcuts to navigate between code and specs. vim-rake automatically maps code/spec mappings for Ruby files if vim-projectionist is available. Close #381.
53 lines
1.4 KiB
Text
53 lines
1.4 KiB
Text
if &compatible
|
|
set nocompatible
|
|
end
|
|
|
|
" Shim command and function to allow migration from Vundle to vim-plug.
|
|
function! VundleToPlug(vundle_command, arg, ...)
|
|
echom "You are using Vundle's `".a:vundle_command."` command to declare plugins. Dotfiles now uses vim-plug for plugin mangagement. Please rename uses of `".a:vundle_command."` to `Plug`. Plugin was '".a:arg."'."
|
|
let vim_plug_options = {}
|
|
|
|
if a:0 > 0
|
|
if has_key(a:1, 'name')
|
|
let name = a:1.name
|
|
let vim_plug_options.dir = "$HOME/.vim/bundle/".a:1.name
|
|
endif
|
|
|
|
if has_key(a:1, 'rtp')
|
|
let vim_plug_options.rtp = a:1.rtp
|
|
endif
|
|
endif
|
|
|
|
Plug a:arg, vim_plug_options
|
|
endfunction
|
|
|
|
com! -nargs=+ -bar Plugin call VundleToPlug("Plugin", <args>)
|
|
com! -nargs=+ -bar Bundle call VundleToPlug("Bundle", <args>)
|
|
|
|
call plug#begin('~/.vim/bundle')
|
|
|
|
" Define bundles via Github repos
|
|
Plug 'christoomey/vim-run-interactive'
|
|
Plug 'kchmck/vim-coffee-script'
|
|
Plug 'ctrlpvim/ctrlp.vim'
|
|
Plug 'pbrisbin/vim-mkdir'
|
|
Plug 'scrooloose/syntastic'
|
|
Plug 'slim-template/vim-slim'
|
|
Plug 'thoughtbot/vim-rspec'
|
|
Plug 'tpope/vim-bundler'
|
|
Plug 'tpope/vim-endwise'
|
|
Plug 'tpope/vim-eunuch'
|
|
Plug 'tpope/vim-fugitive'
|
|
Plug 'tpope/vim-projectionist'
|
|
Plug 'tpope/vim-rails'
|
|
Plug 'tpope/vim-rake'
|
|
Plug 'tpope/vim-repeat'
|
|
Plug 'tpope/vim-surround'
|
|
Plug 'vim-ruby/vim-ruby'
|
|
Plug 'vim-scripts/tComment'
|
|
|
|
if filereadable(expand("~/.vimrc.bundles.local"))
|
|
source ~/.vimrc.bundles.local
|
|
endif
|
|
|
|
call plug#end()
|