Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324if exists('g:loaded_wildsmartcase') finishendiflet g:loaded_wildsmartcase = 1
set nofileignorecaseset wildcharm=<Tab>
function! s:CmdlineTab() abort if getcmdtype() ==# ':' let token = matchstr(getcmdline()[:getcmdpos()-1], '[^ /]\+$') let &wildignorecase = token !~# '[A-Z]' endif return "\<Tab>"endfunction
cnoremap <expr> <Tab> <SID>CmdlineTab()
augroup wildsmartcase autocmd! autocmd CmdlineEnter : let s:wic = &wildignorecase autocmd CmdlineLeave : if exists('s:wic') | let &wildignorecase = s:wic | endifaugroup END