Skip to content

Commit

Permalink
Adding shortcut for different tabs, adding dir ignores for CommandT/ack
Browse files Browse the repository at this point in the history
  • Loading branch information
clifff committed Jun 19, 2012
1 parent e7c60c2 commit c899bb7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .ackrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
--type-set=coffeescript=.coffee
--type-set=css=.scss
--ignore-dir=public/cache
3 changes: 2 additions & 1 deletion .vim/.netrwhist
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =1
let g:netrw_dirhist_cnt =2
let g:netrw_dirhist_1='/usr/bin'
let g:netrw_dirhist_2='/Users/clifff/Code/syllabus'
15 changes: 15 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,20 @@ colorscheme vividchalk

syntax enable

" Meta+1-0 jumps to tab 1-10, Shift+Meta+1-0 jumps to tab 11-20:
let s:windowmapnr = 0
let s:wins='1234567890!@#$%^&*()'
while (s:windowmapnr < strlen(s:wins))
exe 'noremap <silent> <D-' . s:wins[s:windowmapnr] . '> ' . (s:windowmapnr + 1) . 'gt'
exe 'inoremap <silent> <D-' . s:wins[s:windowmapnr] . '> <C-O>' . (s:windowmapnr + 1) . 'gt'
exe 'cnoremap <silent> <D-' . s:wins[s:windowmapnr] . '> <C-C>' . (s:windowmapnr + 1) . 'gt'
exe 'vnoremap <silent> <D-' . s:wins[s:windowmapnr] . '> <C-C>' . (s:windowmapnr + 1) . 'gt'
let s:windowmapnr += 1
endwhile
unlet s:windowmapnr s:wins

" Files to ignore for Command-T / other listings
:set wildignore+=*.o,*.obj,.git,public/stylesheets/**,public/cache/**

" Load up pathogen / plugins
call pathogen#infect()

0 comments on commit c899bb7

Please sign in to comment.