From 5b1a92423bb331a2b6df20e8ef7af5558dd2507f Mon Sep 17 00:00:00 2001 From: Mike Crittenden Date: Mon, 19 Sep 2011 15:55:19 -0400 Subject: [PATCH] switch from command-t to ctrlp.vim and remove some unused stuff --- .vimrc | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/.vimrc b/.vimrc index 0fcd831..1da212b 100644 --- a/.vimrc +++ b/.vimrc @@ -19,8 +19,8 @@ Bundle 'gmarik/vundle' " GitHub repos Bundle 'tpope/vim-fugitive' Bundle 'tpope/vim-surround' -Bundle 'wincent/Command-T' Bundle 'Townk/vim-autoclose' +Bundle 'kien/ctrlp.vim' Bundle 'mattn/gist-vim' Bundle 'mattn/zencoding-vim' Bundle 'edsono/vim-matchit' @@ -30,8 +30,6 @@ Bundle 'vim-scripts/molokai' Bundle 'vim-scripts/closetag.vim' Bundle 'vim-scripts/php.vim-html-enhanced' -filetype plugin indent on - " Set filetype detection on, load plugins and indent. filetype plugin indent on @@ -162,23 +160,12 @@ colorscheme molokai let g:user_zen_expandabbr_key = '' let g:use_zen_complete_tag = 1 -" Map to C-x C-o to open omnicomplete popup, but only if there is text -" to complete. Otherwise, just do a normal tab. -function! TabAutocomplete() - if strpart(getline('.'), 0, col('.') - 1) =~ '^\s*$' - return "\" - else - if &omnifunc != '' - return "\\" - elseif &dictionary != '' - return "\" - else - return "\" - endif - endif -endfunction - -inoremap =TabAutocomplete() +" Set options for ctrlp.vim +"set wildignore+=*/.git/*,*/.hg/*,*/.svn/* +let g:ctrlp_dotfiles = 0 +let g:ctrlp_working_path_mode = 0 +let g:ctrlp_match_window_reversed = 0 +let g:ctrlp_persistent_input = 0 " If you prefer the Omni-Completion tip window to close when a selection is " made, these lines close it on movement in insert mode or when leaving