Skip to content

Commit

Permalink
Fixed rails.vim customizations.
Browse files Browse the repository at this point in the history
  • Loading branch information
duff committed Jun 21, 2010
1 parent 4a0c7ce commit 622d344
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .vimrc
Expand Up @@ -88,12 +88,13 @@ map <leader>K [M
" edit vimrc " edit vimrc
map <leader>v :sp ~/.vimrc<CR><C-W>_ map <leader>v :sp ~/.vimrc<CR><C-W>_
map <leader>V :source ~/.vimrc<CR>:filetype detect<CR>:exe ":echo 'vimrc reloaded'"<CR> map <leader>V :source ~/.vimrc<CR>:filetype detect<CR>:exe ":echo 'vimrc reloaded'"<CR>:execute 'NERDTreeToggle ' . getcwd()<CR>:execute 'NERDTreeToggle ' . getcwd()<CR><C-W>l
" command-t plugin " command-t plugin
silent! nmap <unique> <silent> <Leader>f :CommandT<CR> silent! nmap <unique> <silent> <Leader>f :CommandT<CR>
map <leader>F :CommandTFlush<CR> map <leader>F :CommandTFlush<CR>
set wildignore+=bundler_gems,legacy_gems,coverage,images,activesupport,actionpack,railties,actionmailer " set wildignore+=bundler_gems,legacy_gems,coverage,images,activesupport,actionpack,railties,actionmailer
set wildignore+=vendor/plugins/**,vendor/linked_gems/**,vendor/gems/**,vendor/rails/**


" ack shortcuts " ack shortcuts
map <leader>A :Ack<cword><CR> map <leader>A :Ack<cword><CR>
Expand Down Expand Up @@ -127,7 +128,7 @@ vmap <leader>P "0P


" --------------------------------------------------------------------------- " ---------------------------------------------------------------------------
" rails.vim plugin mappgins " rails.vim plugin mappings
" --------------------------------------------------------------------------- " ---------------------------------------------------------------------------
nmap <leader>r :Rake<CR> nmap <leader>r :Rake<CR>
nmap <leader>R :.Rake<CR> nmap <leader>R :.Rake<CR>
Expand All @@ -139,9 +140,17 @@ nmap <leader><leader>h :Rhelper
nmap <leader><leader>i :Rinitializer nmap <leader><leader>i :Rinitializer
nmap <leader><leader>e :Renvironment nmap <leader><leader>e :Renvironment
nmap <leader><leader>l :Rlib nmap <leader><leader>l :Rlib
nmap <leader><leader>s :Rintegrationtest nmap <leader><leader>f :Rfeature
nmap <leader><leader>u :Runittest nmap <leader><leader>u :Runittest

" ---------------------------------------------------------------------------
" rails.vim autocommands
" ---------------------------------------------------------------------------
autocmd User Rails silent! Rnavcommand feature features -glob=* -suffix=.feature
autocmd User Rails silent! Rnavcommand steps features/step_definitions -glob=* -suffix=_steps.rb


" --------------------------------------------------------------------------- " ---------------------------------------------------------------------------
" Status line customization " Status line customization
" --------------------------------------------------------------------------- " ---------------------------------------------------------------------------
Expand Down

0 comments on commit 622d344

Please sign in to comment.