vim-abolish
vim-abolish copied to clipboard
unexpected output if search string is lowercase and file uses snake case
If my document contains:
test_case
Test_Case
and I type:
:%S/test_case/foo_bar
then I get:
foo_bar
Test_Case
but if I type:
:%S/Test_Case/Foo_Bar/g
then I get:
foo_bar
Foo_Bar
If this is the intended behavior, then please document it. I read through the readme multiple times but perhaps I missed the discussion on behavior of capitalization.
I'm also seeing this, but in general, not just with snake case: if my search string is all lowercase than only all lowercase matches are found; if my search string is capitalized then it will match both all lowercase occurrences and occurrences with the exact capitalization of the search string.
I normally have ignorecase and smartcase enabled, but I've tried with both disabled and I see the same result.
Any clues on how to diagnose this would be very much appreciated.
Ahh ... I see my mistake. I was trying to map hnil
and HNil
to cnil
and CNil
respectively, and it seems that Subvert won't accept adjacent capitals as a form of camel case.