1587 / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

'nocompatible' in vimrc causes the first char changed to 'g' #381

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by expro...@gmail.com on 9 Jul 2015 at 1:28

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

Original comment by expro...@gmail.com on 9 Jul 2015 at 1:32

GoogleCodeExporter commented 9 years ago
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.

Original comment by odabr...@gmail.com on 9 Jul 2015 at 2:26

GoogleCodeExporter commented 9 years ago
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

Original comment by h.east....@gmail.com on 9 Jul 2015 at 2:48

GoogleCodeExporter commented 9 years ago
fixed 

Original comment by chrisbr...@googlemail.com on 23 Jul 2015 at 11:53