Skip to content

Commit

Permalink
Introduce projectile.vim
Browse files Browse the repository at this point in the history
This makes working with non Rails projects much more like rails.vim
  • Loading branch information
jgdavey committed Apr 24, 2014
1 parent 5ef599e commit 948504a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .vim/plugin/hashrocket.vim
Expand Up @@ -120,6 +120,24 @@ call extend(g:rails_gem_projections, {
\ "command": "factory"}}
\ }, 'keep')

" Generic non-Rails projections with projectile.vim
if !exists('g:projectiles')
let g:projectiles = {}
endif

call extend(g:projectiles, {
\ "config.rb&source/": {
\ "source/stylesheets/*.sass": { "command" : "stylesheet" },
\ "source/stylesheets/*.scss": { "command" : "stylesheet" },
\ "source/stylesheets/*.css": { "command" : "stylesheet" },
\ "source/javascripts/*.js": { "command" : "javascript" },
\ "source/stylesheets/*.coffee": { "command" : "javascript" },
\ "source/*.html": { "command" : "view" },
\ "source/*.haml": { "command" : "view" },
\ "config.rb": { "command" : "config" }
\ }
\ }, 'keep')

inoremap <C-C> <Esc>`^
map Y y$
Expand Down
1 change: 1 addition & 0 deletions .vimbundle
Expand Up @@ -28,6 +28,7 @@ tpope/vim-git
tpope/vim-haml
tpope/vim-markdown
tpope/vim-pathogen
tpope/vim-projectile
tpope/vim-ragtag
tpope/vim-rails
tpope/vim-rake
Expand Down

0 comments on commit 948504a

Please sign in to comment.