.vim: Use Ctrl-P instead of Command-T
authorTony Duckles <tony@nynim.org>
Wed, 17 Apr 2013 01:36:28 +0000
committerTony Duckles <tony@nynim.org>
Wed, 17 Apr 2013 01:36:28 +0000
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
.vim/bundle/command-t [deleted submodule]
.vim/bundle/ctrlp [new submodule]
.vimrc

index 55ffe396009e96edfdcb39e8dd85c66be7fe6e4c..c3a8c28551d8182b98ada60a104e6e1afceb6b04 100644 (file)
        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 (submodule)
index d30099c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit d30099cac79dfdbc4a16d8279c5a2304b1494b2c
diff --git a/.vim/bundle/ctrlp b/.vim/bundle/ctrlp
new file mode 160000 (submodule)
index 0000000..287b9c1
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 287b9c12aad2420269576504d1c05d36111a4562
diff --git a/.vimrc b/.vimrc
index e51df6e7083193be8fcfb9962227d5c4dc48935a..2bc7133caa71b814bf291069fc384b3b3afcc75c 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -183,10 +183,11 @@ nnoremap <F5> :GundoToggle<CR>
 nnoremap <F7> :setlocal spell! spelllang=en_us spell?<CR>
 inoremap <F7> <C-o>:setlocal spell! spelllang=en_us spell?<CR>
 
-" Command-T
-noremap <leader>o <Esc>:CommandT<CR>
-noremap <leader>O <Esc>:CommandTFlush<CR>
-noremap <leader>m <Esc>:CommandTBuffer<CR>
+" Ctrl-P
+let g:ctrlp_map = ''
+noremap <leader>o <Esc>:CtrlP<CR>
+noremap <leader>O <Esc>:CtrlP<CR>
+noremap <leader>m <Esc>:CtrlPBuffer<CR>
 
 " make Y consistent with C (c$) and D (d$)
 nnoremap Y y$