mirror of
https://github.com/spf13/spf13-vim.git
synced 2024-09-21 07:27:11 +00:00
On Windows, the fallback command (g:ctrlp_user_command) should be "dir" instead of "find" (#381).
This commit is contained in:
parent
49b405c855
commit
43bfb4ffc5
25
.vimrc
25
.vimrc
@ -411,13 +411,24 @@
|
||||
\ 'dir': '\.git$\|\.hg$\|\.svn$',
|
||||
\ 'file': '\.exe$\|\.so$\|\.dll$\|\.pyc$' }
|
||||
|
||||
let g:ctrlp_user_command = {
|
||||
\ 'types': {
|
||||
\ 1: ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others'],
|
||||
\ 2: ['.hg', 'hg --cwd %s locate -I .'],
|
||||
\ },
|
||||
\ 'fallback': 'find %s -type f'
|
||||
\ }
|
||||
" On Windows use "dir" as fallback command.
|
||||
if has('win32') || has('win64')
|
||||
let g:ctrlp_user_command = {
|
||||
\ 'types': {
|
||||
\ 1: ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others'],
|
||||
\ 2: ['.hg', 'hg --cwd %s locate -I .'],
|
||||
\ },
|
||||
\ 'fallback': 'dir %s /-n /b /s /a-d'
|
||||
\ }
|
||||
else
|
||||
let g:ctrlp_user_command = {
|
||||
\ 'types': {
|
||||
\ 1: ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others'],
|
||||
\ 2: ['.hg', 'hg --cwd %s locate -I .'],
|
||||
\ },
|
||||
\ 'fallback': 'find %s -type f'
|
||||
\ }
|
||||
endif
|
||||
"}
|
||||
|
||||
" TagBar {
|
||||
|
Loading…
Reference in New Issue
Block a user