Browse files

cleaning up my vim config...

i need to grow up and not use hashrocket.vim
  • Loading branch information...
1 parent d2bdfee commit 143b32267530bc07579a53bcd79c2c98d374e414 @levicole committed Mar 1, 2013
Showing with 3 additions and 26 deletions.
  1. +0 −2 .vim/plugin/hashrocket.vim
  2. +3 −24 .vimrc
View
2 .vim/plugin/hashrocket.vim
@@ -168,8 +168,6 @@ augroup hashrocket
autocmd User Rails nnoremap <buffer> <D-R> :<C-U>.Rake<CR>
autocmd User Rails Rnavcommand seeds db/ -default=seeds
autocmd User Rails Rnavcommand uploader app/uploaders -suffix=_uploader.rb -default=model()
- autocmd User Rails Rnavcommand steps features/step_definitions -suffix=_steps.rb -default=web
autocmd User Rails Rnavcommand blueprint spec/blueprints -suffix=_blueprint.rb -default=model()
- autocmd User Rails Rnavcommand factory spec/factories -suffix=_factory.rb -default=model()
autocmd User Fugitive command! -bang -bar -buffer -nargs=* Gpr :Git<bang> pull --rebase <args>
augroup END
View
27 .vimrc
@@ -3,8 +3,6 @@ if exists('g:loaded_pathogen')
call pathogen#runtime_prepend_subdirectories(expand('~/.vimbundles'))
endif
-source ~/.vimrc.local
-
syntax on
filetype plugin indent on
@@ -24,29 +22,10 @@ set number
autocmd User Rails Rnavcommand sass app/stylesheets -glob=**/* -suffix=.sass
autocmd User Rails Rnavcommand feature features -suffix=.feature
-autocmd User Rails Rnavcommand fabricator spec/fabricators -suffix=_fabricator.rb
-autocmd User Rails Rnavcommand pmodel vendor/plugins/chc_hci/app/models -suffix=.rb
-autocmd User Rails Rnavcommand pspec vendor/plugins/chc_hci/spec -glob=**/* -suffix=_spec.rb
-autocmd User Rails Rnavcommand plib vendor/plugins/chc_hci/lib -suffix=.rb
+autocmd User Rails Rnavcommand factory spec/factories -default=model() -suffix=_factory.rb
+autocmd User Rails Rnavcommand admin app/admin -suffix=_admin.rb -default=model()
+autocmd User Rails Rnavcommand worker app/workers -suffix=_worker.rb -default=model()
imap dt5 <!DOCTYPE html>
-function! Rlocalize(lk) range
- let saved_reg_type = getregtype('"')
- let old_reg = getreg('"')
- normal! ""gvy
- let selection = getreg('"')
- let key = split(a:lk, '\.')
- let phrase = key[-1].": \"".selection."\""
- call setreg('l', phrase)
- call setreg('"', old_reg, saved_reg_type)
- normal! gvd
- exe "normal i t(\"".a:lk."\")"
- .s/\(\S\)\s\+/\1 /g
- .s/\s\+$//
-endfunction
-
-command! -nargs=* -range Translate call Rlocalize(<f-args>)
-command! TP normal o<space><esc>x"lp
noremap ,s :source ~/.vimrc.local
-inoremap <C-X>c #<C-R>=system('colorpick')<CR>

0 comments on commit 143b322

Please sign in to comment.