aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-07-13 11:33:00 -0400
committerTeddy Wing2015-07-13 11:37:04 -0400
commit736dfe7dd17289a8c83873af873c2b86c62de90f (patch)
treef4ea16b7f0c2f01d7de99bf7e237a7d567227069
parent7dd63ba1df411c6380b4649075e4c37a7894c4d0 (diff)
downloaddotvim-736dfe7dd17289a8c83873af873c2b86c62de90f.tar.bz2
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.
-rw-r--r--vimrc13
1 files changed, 9 insertions, 4 deletions
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 <leader>xd :call PickFile()<cr>
-nnoremap <leader>xs :call PickFileSplit()<cr>
-nnoremap <leader>xv :call PickFileVerticalSplit()<cr>
-nnoremap <leader>xt :call PickFileTab()<cr>
+let g:pick_command = "find * -type f -o -type l"
+nnoremap <leader>xd :call PickCommand(g:pick_command, "", ":edit")<cr>
+nnoremap <leader>xs :call PickCommand(g:pick_command, "", ":split")<cr>
+nnoremap <leader>xv :call PickCommand(g:pick_command, "", ":vsplit")<cr>
+nnoremap <leader>xt :call PickCommand(g:pick_command, "", ":tabedit")<cr>
nnoremap <leader>xb :call PickBuffer()<cr>
nnoremap <leader>x] :call PickTag()<cr>