Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Replace Command-T with Ctrl-P.

  • Loading branch information...
commit 1320cba9894b68fd70fcc214d09d51de2726dc64 1 parent 83fb3fd
Jason Weathered authored
5 functions.vim
... ... @@ -1,8 +1,3 @@
1   -function! CommandTWithFlush()
2   - CommandTFlush
3   - CommandT
4   -endfunction
5   -
6 1 command! -range=% -nargs=0 TabToSpace silent! execute "<line1>,<line2>s/^\\t\\+/\\=substitute(submatch(0), '\\t', repeat(' ', ".&ts."), 'g')"
7 2 command! -range=% -nargs=0 SpaceToTab silent! execute "<line1>,<line2>s/^\\( \\{".&ts."\\}\\)\\+/\\=substitute(submatch(0), ' \\{".&ts."\\}', '\\t', 'g')"
8 3 command! Marked silent !open -a Marked "%:p"
11 install.sh
@@ -28,14 +28,3 @@ iRun \`:qa\` to finish install when bundle completes.
28 28 :BundleInstall!
29 29 EOF
30 30 )
31   -
32   -(
33   - builtin cd ~/.vim/bundle/Command-T/ruby/command-t
34   - if [[ -n "$rvm_path" ]]
35   - then
36   - rvm system
37   - fi
38   - export PATH=/usr/bin:/bin:/usr/local/bin
39   - ruby extconf.rb
40   - make clean && make
41   -)
5 keybindings.vim
@@ -24,11 +24,10 @@ map <Leader>a ggVG
24 24
25 25 " Buffer navigation
26 26 map <Leader>, <C-^>
27   -map <Leader>t :CommandT<CR>
28   -map <Leader>T :call CommandTWithFlush()<CR>
29 27 map <Leader>w :CommandW<CR>
30 28 nmap <silent><Leader>q :call CloseWindow()<CR>
31   -map <Leader>l :CommandTBuffer<CR>
  29 +map <Leader>T :CtrlPClearAllCaches<CR>:CtrlP<CR>
  30 +map <Leader>l :CtrlPBuffer<CR>
32 31
33 32 " Copy relative path to the system pasteboard
34 33 nnoremap <silent><Leader>cf :let @*=expand('%')<CR>
17 plugin_config.vim
@@ -15,11 +15,18 @@ let g:syntastic_enable_signs = 1
15 15 let g:syntastic_auto_loc_list = 0
16 16 let g:syntastic_disabled_filetypes = ['cucumber']
17 17
18   -" Command-T
19   -let g:CommandTMaxFiles = 20000
20   -let g:CommandTMinHeight = 10
21   -let g:CommandTMaxHeight = 10
22   -let g:CommandTMatchWindowAtTop = 0
  18 +" Ctrl-P
  19 +let g:ctrlp_map = '<Leader>t'
  20 +let g:ctrlp_clear_cache_on_exit = 1
  21 +let g:ctrlp_working_path_mode = 0 " Don't manage
  22 +let g:ctrlp_dotfiles = 0 " Ignore all dot/hidden files
  23 +let g:ctrlp_custom_ignore = {
  24 + \ 'dir': '\.git$\|\.hg$\|\.svn$\|backups$\|logs$\|tmp$',
  25 + \ 'file': '',
  26 + \ 'link': '',
  27 + \ }
  28 +let g:ctrlp_match_window_reversed = 0
  29 +let g:ctrlp_max_height = 10
23 30
24 31 " Detect Indent
25 32 let g:detectindent_preferred_expandtab = 1
2  vundle.vim
@@ -7,7 +7,7 @@ call vundle#rc()
7 7 Bundle 'gmarik/vundle'
8 8 Bundle 'mileszs/ack.vim'
9 9 Bundle 'bufexplorer.zip'
10   -Bundle 'wincent/Command-T'
  10 +Bundle 'kien/ctrlp.vim'
11 11 Bundle 'scrooloose/nerdtree'
12 12 Bundle 'bufkill.vim'
13 13 Bundle 'nathanaelkane/vim-command-w'

0 comments on commit 1320cba

Please sign in to comment.
Something went wrong with that request. Please try again.