Permalink
Browse files

add irbrc file; load vi into irb

  • Loading branch information...
1 parent 53f6391 commit 66e439d245577568327b78dbe9dbe1e02f2be02f @gruntruk committed Mar 13, 2012
Showing with 8 additions and 0 deletions.
  1. +2 −0 .irbrc
  2. +6 −0 .vimrc
View
@@ -0,0 +1,2 @@
+require 'rubygems'
+require 'interactive_editor'
View
@@ -62,3 +62,9 @@ map <leader>gp :CommandTFlush<cr>\|:CommandT public<cr>
" escape to clear command-t
let g:CommandTCancelMap=['<ESC>','<C-c>']
+
+" restore cursor position
+autocmd BufReadPost *
+ \ if line("'\"") > 1 && line("'\"") <= line("$") |
+ \ exe "normal! g`\"" |
+ \ endif

0 comments on commit 66e439d

Please sign in to comment.