Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 453418 - app-editors/vim-core-7.3.762 Opened file gets modified when mapping g to some other value
Summary: app-editors/vim-core-7.3.762 Opened file gets modified when mapping g to som...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Vim Maintainers
Depends on:
Reported: 2013-01-21 21:40 UTC by Philipp
Modified: 2017-10-22 14:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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?