From a06356c009edcfa39a55dfa55f1b3d78258afe87 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Tue, 16 Apr 2013 20:36:28 -0500 Subject: [PATCH] .vim: Use Ctrl-P instead of Command-T Ctrl-P is a full path fuzzy file, buffer, mru, tag finder for Vim. It is written in pure Vimscript, as opposed to Command-T which needs Vim to be compiled with Ruby support. --- .gitmodules | 8 ++++---- .vim/bundle/command-t | 1 - .vim/bundle/ctrlp | 1 + .vimrc | 9 +++++---- 4 files changed, 10 insertions(+), 9 deletions(-) delete mode 160000 .vim/bundle/command-t create mode 160000 .vim/bundle/ctrlp diff --git a/.gitmodules b/.gitmodules index 55ffe39..c3a8c28 100644 --- a/.gitmodules +++ b/.gitmodules @@ -18,10 +18,6 @@ path = .vim/bundle/gundo url = git://github.com/sjl/gundo.vim.git ignore = dirty -[submodule ".vim/bundle/command-t"] - path = .vim/bundle/command-t - url = git://github.com/wincent/Command-T.git - ignore = dirty [submodule ".vim/bundle/ack"] path = .vim/bundle/ack url = git://github.com/mileszs/ack.vim.git @@ -38,3 +34,7 @@ path = .vim/bundle/nerdtree url = git://github.com/scrooloose/nerdtree.git ignore = dirty +[submodule ".vim/bundle/ctrlp"] + path = .vim/bundle/ctrlp + url = git://github.com/kien/ctrlp.vim.git + ignore = dirty diff --git a/.vim/bundle/command-t b/.vim/bundle/command-t deleted file mode 160000 index d30099c..0000000 --- a/.vim/bundle/command-t +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d30099cac79dfdbc4a16d8279c5a2304b1494b2c diff --git a/.vim/bundle/ctrlp b/.vim/bundle/ctrlp new file mode 160000 index 0000000..287b9c1 --- /dev/null +++ b/.vim/bundle/ctrlp @@ -0,0 +1 @@ +Subproject commit 287b9c12aad2420269576504d1c05d36111a4562 diff --git a/.vimrc b/.vimrc index e51df6e..2bc7133 100644 --- a/.vimrc +++ b/.vimrc @@ -183,10 +183,11 @@ nnoremap :GundoToggle nnoremap :setlocal spell! spelllang=en_us spell? inoremap :setlocal spell! spelllang=en_us spell? -" Command-T -noremap o :CommandT -noremap O :CommandTFlush -noremap m :CommandTBuffer +" Ctrl-P +let g:ctrlp_map = '' +noremap o :CtrlP +noremap O :CtrlP +noremap m :CtrlPBuffer " make Y consistent with C (c$) and D (d$) nnoremap Y y$ -- 2.45.2