Commits

Shilo Ayalon  committed c4faf8f

some more .vimrc tuning

  • Participants
  • Parent commits f20d0fe

Comments (0)

Files changed (1)

 
 Bundle 'vim-scripts/bufexplorer.zip'
 Bundle 'vim-scripts/closetag.vim'
-"Bundle 'wincent/Command-T'
+Bundle 'wincent/Command-T'
 Bundle 'kien/ctrlp.vim'
 Bundle 'vim-scripts/Better-CSS-Syntax-for-Vim'
 Bundle 'ap/vim-css-color'
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " COLOR
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-:set t_Co=256 " 256 colors
-":set background=dark
-:colorscheme molokai
+set t_Co=256 " 256 colors
+"set background=dark
+"colorscheme molokai
+colorscheme ir_black
 
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " STATUS LINE
 let g:ctrlp_map="<leader>p"
 let g:ctrlp_working_path_mode = 'rc'
 
-" some ignore patterns for CommandT
+" some ignore patterns for CommandT and CtrlP
 set wildignore+=**/*~,**/*.swp,**/*.swo,**/*.o,**/*.so,**/*.obj,*/.git,*/.hg,*$*.class
 set wildignore+=*.class,*.pyc,**/*.jpg,**/*.jpeg,**/*.png,**/*.gif,**/*.tiff,**/*.pdf
 set wildignore+=**/*.gz,**/*.bz2,**/*.tgz,**/*.tbz,tmp/cache/**,tmp/assets/cache/**
 set wildignore+=**/*eot,**/*.woff,**/*.ttf
 
+" key bindings for quick open of CtrlP
+"map <leader>gv :CtrlP app/views<cr>
+"map <leader>gc :CtrlP app/controllers<cr>
+"map <leader>gm :CtrlP app/models<cr>
+"map <leader>gh :CtrlP app/helpers<cr>
+"map <leader>gl :CtrlP lib<cr>
+"map <leader>gp :CtrlP public<cr>
+"map <leader>gs :CtrlP assets/stylesheets<cr>
+"map <leader>gj :CtrlP assets/javascripts<cr>
+"map <leader>gt :CtrlP assets/templates<cr>
+"map <leader>f  :CtrlP<cr>
+"map <leader>F  :CtrlP %%<cr>
+
 " When writing a file, if there are errors, have Syntastic plugin mark them
 let g:syntastic_enable_signs=1
 let g:syntastic_auto_loc_list=0
   :normal dd
 endfunction
 map <leader>gR :call ShowRoutes()<cr>
-map <leader>gv :CommandTFlush<cr>\|:CommandT app/views<cr>
-map <leader>gc :CommandTFlush<cr>\|:CommandT app/controllers<cr>
-map <leader>gm :CommandTFlush<cr>\|:CommandT app/models<cr>
-map <leader>gh :CommandTFlush<cr>\|:CommandT app/helpers<cr>
-map <leader>gl :CommandTFlush<cr>\|:CommandT lib<cr>
-map <leader>gp :CommandTFlush<cr>\|:CommandT public<cr>
-map <leader>gs :CommandTFlush<cr>\|:CommandT public/stylesheets/sass<cr>
-map <leader>gf :CommandTFlush<cr>\|:CommandT features<cr>
+map <leader>gv :CommandT app/views<cr>
+map <leader>gc :CommandT app/controllers<cr>
+map <leader>gm :CommandT app/models<cr>
+map <leader>gh :CommandT app/helpers<cr>
+map <leader>ga :CommandT app/assets<cr>
+map <leader>gs :CommandT spec<cr>
+map <leader>gt :CommandTTag<cr>
+map <leader>gf :CommandT config<cr>
+map <leader>gl :CommandT lib<cr>
+map <leader>gp :CommandT public<cr>
 map <leader>gg :topleft 100 :split Gemfile<cr>
-map <leader>gt :CommandTFlush<cr>\|:CommandTTag<cr>
-map <leader>f :CommandTFlush<cr>\|:CommandT<cr>
-map <leader>F :CommandTFlush<cr>\|:CommandT %%<cr>
+map <leader>f :CommandT<cr>
+map <leader>F :CommandT %%<cr>
+map <leader>tf :CommandTFlush<cr>
 
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " SWITCH BETWEEN TEST AND PRODUCTION CODE