Issue 381 in vim: 'nocompatible' in vimrc causes the first char changed to 'g'

55 views
Skip to first unread message

v...@googlecode.com

unread,
Jul 9, 2015, 9:29:21 AM7/9/15
to vim...@vim.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 381 by expro...@gmail.com: 'nocompatible' in vimrc causes the
first char changed to 'g'
https://code.google.com/p/vim/issues/detail?id=381

What steps will reproduce the problem?
1. find a text file with non-empty first line, like foo.txt
2. add 'set nocompatible' to ~/.vimrc
3. run 'vim foo.txt'

What is the expected output? What do you see instead?
- The first char of first line of foo.txt will always be 'g' regardless
what the file contains.

What version of the product are you using? On what operating system?
- VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 29 2015 10:20:34)
- Linux 4.0.7-2-ARCH #1 SMP PREEMPT Tue Jun 30 08:04:42 UTC 2015 i686
GNU/Linux



--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

v...@googlecode.com

unread,
Jul 9, 2015, 9:32:37 AM7/9/15
to vim...@vim.org

Comment #1 on issue 381 by expro...@gmail.com: 'nocompatible' in vimrc
causes the first char changed to 'g'
https://code.google.com/p/vim/issues/detail?id=381

correction:
- The first char of first line of **the buffer** will always be 'g'
regardless what the file contains.

v...@googlecode.com

unread,
Jul 9, 2015, 10:27:12 AM7/9/15
to vim...@vim.org

Comment #2 on issue 381 by odabr...@gmail.com: 'nocompatible' in vimrc
causes the first char changed to 'g'
https://code.google.com/p/vim/issues/detail?id=381

I cannot reproduce this.

File test.vim contains

set nocompatible

Testing with

vim -u test.vim -U NONE --noplugin test.vim

shows the contents of test.vim without "g", as shown above.

Tested with vim 7.4.000 and vim 7.4.769.

Could you try to reproduce it with the file and command line above?

If it does not reproduce the problem, then something in your
~/.vimrc or in a plugin is likely the reason for the problem.

v...@googlecode.com

unread,
Jul 9, 2015, 10:48:43 AM7/9/15
to vim...@vim.org

Comment #3 on issue 381 by h.east....@gmail.com: 'nocompatible' in vimrc
causes the first char changed to 'g'
https://code.google.com/p/vim/issues/detail?id=381

This problem occurs in vim 7.4.757 to 7.4.765. (fixed by 7.4.766)

If you use urxvt and using transparency, check below thread and try local
patch rbg_fix4.patch
https://groups.google.com/d/topic/vim_dev/LLGjKaEzNUY/discussion

If we want to urgently resolved, try out the following method.
1. 't_RB' cleard in your .vimrc.
set t_RB=
2. 'bg' set to 'dark' or 'light' in your .vimrc
set bg=dark
3. Disable transparency.
Please see https://bbs.archlinux.org/viewtopic.php?pid=1541962#p1541962

Thank you
--
Best regards,
Hirohito Higashi

v...@googlecode.com

unread,
Jul 23, 2015, 7:53:22 AM7/23/15
to vim...@vim.org
Updates:
Status: Fixed

Comment #4 on issue 381 by chrisbr...@googlemail.com: 'nocompatible' in
vimrc causes the first char changed to 'g'
https://code.google.com/p/vim/issues/detail?id=381

fixed
Reply all
Reply to author
Forward
0 new messages