vim-php-namespace icon indicating copy to clipboard operation
vim-php-namespace copied to clipboard

ignorecase applies to include

Open elle-the-dev opened this issue 4 years ago • 0 comments

This isn't necessarily a bug, as it's using vim's settings, but it's not necessarily obvious. If set ignorecase is on, then an include of Foo will also be case-insensitive and return instaces of foo. I don't think it'd be uncommon to have ignorecase on, but not want it applied in the codebase.

I've addressed it for me like this.

function! CasePhpInsertUse()
    set noignorecase
    call PhpInsertUse()
    set ignorecase
endfunction

autocmd FileType php noremap <Leader>u :call CasePhpInsertUse()<CR>

A universal solution would check the value and toggle as necessary.

May be worth mentioning in the readme in some way.

elle-the-dev avatar Jan 21 '20 20:01 elle-the-dev