config/vimrc in zsh_dots-0.6.0 vs config/vimrc in zsh_dots-0.6.2
- old
+ new
@@ -142,10 +142,13 @@
" Skip bullshit directories
let Grep_Skip_Dirs = 'RCS CVS SCCS .svn generated .sass-cache .git'
set grepprg=/bin/grep\ -nH
" Enforce Ruby 1.9 syntax on this line
map <leader>h :s/:\([a-z0-9_]\+\)\s*=>/\1: /g<cr>
+" Easy saving of files
+nnoremap Z :w<cr>
+nnoremap ZZ :wq<cr>
""
"" Autocommands
""
@@ -243,10 +246,14 @@
" Search for files
map <C-t> :CommandT<cr>
" Pressing ,ss will toggle and untoggle spell checking
map <leader>ss :setlocal spell!<cr>
+" Alternate between tabs
+map <leader>m :tabn<cr>
+map <C-s> :w<cr>
+map <leader>s :w<cr>
" Remap :W => :w to avoid errors
command! W w
""
@@ -254,10 +261,10 @@
""
let g:vroom_use_binstubs = 1
let g:vroom_use_colors = 1
let g:vroom_map_keys = 0
-let g:vroom_spec_command = 'rspec --format=documentation '
+let g:vroom_spec_command = 'bundle exec rspec --format=documentation '
let g:vroom_test_unit_command = 'bundle exec ruby -Itest '
"let g:vroom_test_unit_command = 'rtest '
nnoremap <leader>t :VroomRunNearestTest<cr>
nnoremap <leader>T :VroomRunTestFile<cr>