'ignorecase' 'smartcase' */#, ex- / CmdLineEnter autocmd.
nnoremap <expr> * <SID>star_power('*')
nnoremap <expr> # <SID>star_power('#')
function! s:star_power(cmd)
let [&ignorecase, &smartcase] = [0, 0]
return a:cmd
endfunction
augroup StarPower
autocmd!
autocmd CmdLineEnter * let [&ignorecase, &smartcase] = [1, 1]
augroup END
, *, ex-command, 'ignorecase' 'smartcase' . . , getcmdtype(), / ? , , - CmdLineLeave / .
: CmdLineEnter Vim 8.0.1206+.
.:
:h :map-expression
:h :let-&
:h :let-unpack
:h autocommand
:h :augroup
:h :autocmd
:h CmdLineEnter