Permalink
Browse files

Added plugins

  - ruby-debug
  - ruby-rspec
  - ruby-ruby-conque
  - ruby-conque

Added bindings to ruby-debugger and for spliting window
  • Loading branch information...
1 parent dea0765 commit e6b4b7b72f044b167db70d4a7549f9db60ae9fd5 @abonec committed Apr 12, 2012
Showing with 43 additions and 1 deletion.
  1. +12 −0 .gitmodules
  2. +1 −0 bundle/vim-conque
  3. +1 −0 bundle/vim-rspec
  4. +1 −0 bundle/vim-ruby-conque
  5. +1 −0 bundle/vim-ruby-debugger
  6. +27 −1 vimrc
View
@@ -88,3 +88,15 @@
[submodule "bundle/toggle_words"]
path = bundle/toggle_words
url = https://github.com/vim-scripts/toggle_words.vim
+[submodule "bundle/vim-ruby-debugger"]
+ path = bundle/vim-ruby-debugger
+ url = https://github.com/astashov/vim-ruby-debugger.git
+[submodule "bundle/vim-ruby-conque"]
+ path = bundle/vim-ruby-conque
+ url = https://github.com/skwp/vim-ruby-conque.git
+[submodule "bundle/vim-rspec"]
+ path = bundle/vim-rspec
+ url = https://github.com/skwp/vim-rspec.git
+[submodule "bundle/vim-conque"]
+ path = bundle/vim-conque
+ url = https://github.com/rson/vim-conque.git
Submodule vim-conque added at da3573
Submodule vim-rspec added at 745422
Submodule vim-ruby-conque added at 48b737
Submodule vim-ruby-debugger added at 9008a5
View
28 vimrc
@@ -38,13 +38,38 @@ imap <A-8> <ESC>8gt
imap <A-9> <ESC>9gt
imap <A-0> <ESC>10gt
+" Create empty split related to the current one
+nmap <Leader><left> :leftabove vnew<CR>
+nmap <Leader><right> :rightbelow vnew<CR>
+nmap <Leader><up> :leftabove new<CR>
+nmap <Leader><down> :rightbelow new<CR>
+
" Open file in a tab before the current one
com! -nargs=1 -complete=file TabEdit :exe ( tabpagenr() - 1 ) . "tabedit " . <q-args>
command Gdt tabedit %|Gdiff
" map <C-t> <ESC>:tabnew<CR>
-nnoremap <Leader>d :NERDTree<CR>
+" nnoremap <Leader>d :NERDTree<CR>
+nmap <silent> <Leader>p :NERDTreeToggle<CR>
+nnoremap <Leader>B :CommandTBuffer<CR>
+nnoremap <Leader>r :RunSpec<CR>
nmap ,t :ToggleWord<CR>
+
+" Vim Ruby Debugger settings
+" let g:ruby_debugger_debug_mode = 1
+let g:ruby_debugger_spec_path = 'rspec'
+let g:ruby_debugger_default_script = 'script/rails s'
+" let g:ruby_debugger_progname = 'mvim'
+
+map <A-b> :call g:RubyDebugger.toggle_breakpoint()<CR>
+map <A-v> :call g:RubyDebugger.open_variables()<CR>
+map <A-m> :call g:RubyDebugger.open_breakpoints()<CR>
+map <F7> :call g:RubyDebugger.step()<CR>
+map <F5> :call g:RubyDebugger.next()<CR>
+map <F8> :call g:RubyDebugger.continue()<CR>
+map <A-e> :call g:RubyDebugger.exit()<CR>
+map <A-d> :call g:RubyDebugger.remove_breakpoints()<CR>
+
"Use Vim settings, rather then Vi settings (much better!).
"This must be first, because it changes other options as a side effect.
set nocompatible
@@ -93,6 +118,7 @@ set statusline+=%c, "cursor column
set statusline+=%l/%L "cursor line/total lines
set statusline+=\ %P "percent through file
set laststatus=2
+" set statusline=%{ruby_debugger#statusline()}

0 comments on commit e6b4b7b

Please sign in to comment.