Opening files containing the $ character will evaluate part of the filename as an environment variable. Special characters need to be escaped such that they are not interpreted by vim.
How to reproduce
- Create a file with a name containing the
$ character (e.g. $PWD.c).
- Select the newly created file with ranger.vim to edit.
- The wrong file has been chosen to edit by ranger.vim, as seen by executing
:ls in vim.