Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new emerge of VIM - strange characters while editing (SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Mad_Jester
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2004
Posts: 85

PostPosted: Thu Jun 23, 2005 4:37 pm    Post subject: new emerge of VIM - strange characters while editing (SOLVED Reply with quote

I recently installed gentoo on a new system. After I installed vim I noticed that opening a file in vim resulted in it displaying strange characters (primarily () and dm) throughout the file. This only happened with vim. It does not happen with cat, less, nano, etc. After I write or close the file, it does NOT insert these charcters. They are only displayed while I am editing. Does anyone have any idea that could help me find the cause.

Here is a portion of the /etc/profile as seen by vim:
# including color. We leave out color here because not all
# terminals support it.
(dmif (dm[ (dm-f /etc/bash/bashrc (dm] (dm; (dmthen
)dm# Bash login shells run only /etc/profile
# Bash non-login shells run only /etc/bash/bashrc
# Since we want to run /etc/bash/bashrc regardless, we source it
# from here. It is unfortunate that there is no way to do
# this *after* the user's .bash_profile runs (without putting
# it in the user's dot-files), but it shouldn't make any
# difference.
(dm . /etc/bash/bashrc
(dmelse
+dmPS1=(dm'&dm\u@\h \w \$ (dm'
fi
else
)dm# Setup a bland default prompt. Since this prompt should be useable
# on color and non-color terminals, as well as shells that don't
# understand sequences such as \h, don't put anything special in it.
+dmPS1=(dm"*dm`whoami`&dm@*dm`uname -n (dm|*dm cut -f1 -d.`&dm *dm\$&dm (dm"
fi
(dm(++d++dmi


Last edited by Mad_Jester on Tue Jul 05, 2005 6:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
Irom
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2003
Posts: 95
Location: am arsch..

PostPosted: Thu Jun 23, 2005 5:47 pm    Post subject: Reply with quote

What's the content of your TERM-variable? Does it happen in all Terminals (xterm, console)?
$TERM is the first (and only) idea I have.

Does it happen when you start vim with

vim -u NONE -U NONE

?
_________________
http://ftp.fukt.bsnet.se/pub/movies/stallman/ (Please watch this before you form an opinion about GNU)
https://apfelboymchen.net/gnu/
Back to top
View user's profile Send private message
Mad_Jester
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2004
Posts: 85

PostPosted: Tue Jun 28, 2005 5:25 pm    Post subject: Stranger still Reply with quote

The term variable is set to rxvt.

When I launch with the -u NONE -U NONE, it will not display any of the strange characters in the file. However, if I add and remove a line from the end of the file, it will show them at the bottom of the screen.

I am connecting to these systems via SSH and so I cannot test different terminal types. It happens when connected via SSH, but it does not seem to happen from the console.

It has also happened on two different systems built with slightly different configurations.

I am wondering if this has something to do with my penchant for installing VI early. I don't like to use nano, and so I install VI as early as I can during the installation process. Usually right after emerge system.

Any thoughts?
Back to top
View user's profile Send private message
Trent_R
n00b
n00b


Joined: 29 Jun 2005
Posts: 5

PostPosted: Wed Jun 29, 2005 5:30 pm    Post subject: Reply with quote

I've had the same issues once but with nano. The cause was the setting of +debug in my USE variable. After setting it to -debug and emerging nano again everything worked.
Back to top
View user's profile Send private message
Mad_Jester
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2004
Posts: 85

PostPosted: Wed Jun 29, 2005 7:21 pm    Post subject: Reply with quote

Unfortunately, that is not the case. It was compiled with -debug on both systems.
Back to top
View user's profile Send private message
Mad_Jester
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2004
Posts: 85

PostPosted: Tue Jul 05, 2005 4:40 pm    Post subject: Reply with quote

Is no one else seeing this problem? I have seen this on 3 seperate systems I have built. On the last I saved the vim installation until after the system was completely built.
Back to top
View user's profile Send private message
Irom
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2003
Posts: 95
Location: am arsch..

PostPosted: Tue Jul 05, 2005 4:44 pm    Post subject: Reply with quote

Try to use another Terminal emulator (xterm, Eterm, ...), or do you depend on features of rxvt?
_________________
http://ftp.fukt.bsnet.se/pub/movies/stallman/ (Please watch this before you form an opinion about GNU)
https://apfelboymchen.net/gnu/
Back to top
View user's profile Send private message
Mad_Jester
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2004
Posts: 85

PostPosted: Tue Jul 05, 2005 4:53 pm    Post subject: Reply with quote

These are not workstations and do not have X installed. I can only connect via ssh, or the console. I cannot try different terminal emulators.
Back to top
View user's profile Send private message
Irom
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2003
Posts: 95
Location: am arsch..

PostPosted: Tue Jul 05, 2005 5:06 pm    Post subject: Reply with quote

Maybe I misunderstand you (if so, sorry for the noise), but you seem to ssh from a workstation with X - your TERM-variable is set to rxvt. Try to ssh with another Terminal emulator.
_________________
http://ftp.fukt.bsnet.se/pub/movies/stallman/ (Please watch this before you form an opinion about GNU)
https://apfelboymchen.net/gnu/
Back to top
View user's profile Send private message
Mad_Jester
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2004
Posts: 85

PostPosted: Tue Jul 05, 2005 5:22 pm    Post subject: Reply with quote

Ahh... I misunderstood you. Good suggestion. I was so focused on the remote systems that I didn't think my workstation could have anything to do with it.

It looks like I may have fixed the problem, but I am not sure which change has done it. I will have to investigate further to isolate the solution.
Back to top
View user's profile Send private message
Mad_Jester
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2004
Posts: 85

PostPosted: Tue Jul 05, 2005 6:26 pm    Post subject: Reply with quote

The problem oddly enough was my USE flag setting. It was specifically the -* i used to deselect everything I hadn't specifically asked for. I am not sure why this caused the problem, as I haven't gone through and duplicated the flag changes that created. However, removing it and recompiling vim and all dependencies has cleared up this little issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum