瀏覽代碼

Use CtrlP with vim

Emmanuel Bouthenot 11 年之前
父節點
當前提交
741468ca60
共有 3 個文件被更改,包括 17 次插入0 次删除
  1. 3 0
      .gitmodules
  2. 1 0
      .vim/bundle/ctrlp
  3. 13 0
      .vim/vimrc

+ 3 - 0
.gitmodules

@@ -16,3 +16,6 @@
 [submodule ".vim/bundle/syntastic"]
 	path = .vim/bundle/syntastic
 	url = git://github.com/scrooloose/syntastic.git
+[submodule ".vim/bundle/ctrlp"]
+	path = .vim/bundle/ctrlp
+	url = git://github.com/kien/ctrlp.vim.git

+ 1 - 0
.vim/bundle/ctrlp

@@ -0,0 +1 @@
+Subproject commit 6ddbfe2cc00a7eeb2a4450552b78276488a2e2c9

+ 13 - 0
.vim/vimrc

@@ -340,3 +340,16 @@ let g:syntastic_style_warning_symbol = 'Ws'
 "let g:syntastic_python_checker = 'pylint'
 " add options to python linter
 "let g:syntastic_python_checker_args = ''
+
+
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" CtrlP extension Setup
+"
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+
+" Change default key
+let g:ctrlp_map = '<c-o>'
+" Match window height
+let g:ctrlp_max_height = 20
+" Add a key to search in opened buffers
+map <c-b> :CtrlPBuffer<cr>