diff options
author | Teddy Wing | 2015-07-13 11:33:00 -0400 |
---|---|---|
committer | Teddy Wing | 2015-07-13 11:37:04 -0400 |
commit | 736dfe7dd17289a8c83873af873c2b86c62de90f (patch) | |
tree | f4ea16b7f0c2f01d7de99bf7e237a7d567227069 /vimrc | |
parent | 7dd63ba1df411c6380b4649075e4c37a7894c4d0 (diff) | |
download | dotvim-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.
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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> |