qpkorr / vim-renamer

Git repo for http://www.vim.org/scripts/script.php?script_id=1721
MIT License
82 stars 11 forks source link

Changing file name case does not work (Windows) #2

Closed Snaptags closed 8 years ago

Snaptags commented 8 years ago

I try to rename Files using Windows 8.1, e.g. „i am a file.txt“ to „I am a File.txt“, but vim-renamer does not change the file names, it displays the OLD name after entering :Ren instead.

It does not even try to rename the file. I removed the actual renaming code in line 593 to verify this.

Unfortunately I did not find any code skipping files when only the casing has been changed… (If I add or delete any characters, renaming does work as expected)

Any ideas?

Snaptags commented 8 years ago

Found it! Similar to JavaScript the == operator in vim script is NOT to be used ever, because you cannot rely on the result. In vim script == depends on the user setting of ignorecase :-(

qpkorr commented 8 years ago

Thank you - nice catch. I'll pull your fix as soon as I can work out how! (I'm quite the novice on github)

qpkorr commented 8 years ago

Done I hope - thanks again for your help!