Skip to content
Browse files

Replace Command-T with Ctrl-P.

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

0 comments on commit 1320cba

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