Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 453418

Summary: app-editors/vim-core-7.3.762 Opened file gets modified when mapping g to some other value
Product: Gentoo Linux Reporter: Philipp <philipp>
Component: Current packagesAssignee: Vim Maintainers <vim>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Package list:
Runtime testing required: ---

Description Philipp 2013-01-21 21:40:33 UTC
When mapping the char "g" in any way to another char in my .vimrc, and opening a file afterwards, the file gets modified.

Reproducible: Always

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
Actual Results:  
In the beginning of the first line the String '" appears

Expected Results:  
The file should be opened as it is.

You can also use other commands that map g e.g.
set langmap=gi
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.
Comment 1 Patrice Clement gentoo-dev 2017-10-22 14:26:51 UTC

Can you reproduce this with Vim 8.0?