When mapping the char "g" in any way to another char in my .vimrc, and opening a file afterwards, the file gets modified.
Steps to Reproduce:
1. Backup you .vimrc
2. Create new. vimrc just conaining the line "map g i"
3. Save and close vim
4. Open an existing file
In the beginning of the first line the String '" appears
The file should be opened as it is.
You can also use other commands that map g e.g.
or an equivalent.
When you delete (move away) /etc/vim/vimrc , the Problem disappears. This is why I believe, this Bug is Gentoo-Specific. Unfortunately I am just new to vim and don't really understand what happens in /etc/vim/vimrc but this is definitely the place to start looking for this error.
Can you reproduce this with Vim 8.0?