From 736dfe7dd17289a8c83873af873c2b86c62de90f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 13 Jul 2015 11:33:00 -0400 Subject: vimrc: Use `find` as pick.vim command By default pick.vim uses `git ls-files` for its file listing. This ignores untracked files, which I would like to be able to open. Use a custom pick command copied from the pick.vim source to show untracked files in the pick list. --- vimrc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index ba53677..d634cfa 100644 --- a/vimrc +++ b/vimrc @@ -305,6 +305,10 @@ " 2015.07.12: " * Add pick mappings " +" 2015.07.13: +" * Use `find` as our pick.vim command in order to include untracked git +" files in the pick list. +" " Pathogen @@ -475,10 +479,11 @@ let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""' " pick -nnoremap xd :call PickFile() -nnoremap xs :call PickFileSplit() -nnoremap xv :call PickFileVerticalSplit() -nnoremap xt :call PickFileTab() +let g:pick_command = "find * -type f -o -type l" +nnoremap xd :call PickCommand(g:pick_command, "", ":edit") +nnoremap xs :call PickCommand(g:pick_command, "", ":split") +nnoremap xv :call PickCommand(g:pick_command, "", ":vsplit") +nnoremap xt :call PickCommand(g:pick_command, "", ":tabedit") nnoremap xb :call PickBuffer() nnoremap x] :call PickTag() -- cgit v1.2.3