View previous topic :: View next topic |
Author |
Message |
Bungopolis Apprentice
Joined: 31 Jan 2004 Posts: 198 Location: San Francisco, CA, USA
|
Posted: Sun Aug 22, 2004 6:40 am Post subject: character display problem with VIM [Solved] |
|
|
My vim is acting very strangely. This is a new installation, and vim is not displaying files correctly. Gvim works fine, but output from console vim is replacing characters with )dm, *dm, +dm, etc. I can't figure out the behavior. It seems to be putting )dm in front of hashes... I also noticed that syntax hilighting is not working even when I enable it.
Here's an example from a PHP file:
Code: | "oom../"; *+dm../photos&dm">Photos</a></li>+dm</(dma+dm></(dmli+dm> &dm2*dm) *dm{ +dmechoo
<li><a *dm<?php ma+dm *dm<?php (dmif *dm((dm$+dmpage(dm=="&dmshows"*dm) &dmhref="*dm<?php dmclass=\"current+ "oom../"; *+dm../shows&dm">Shows</a></li> |
I compiled vim with a very minimal set of use flags (actually, none) so this could have something to do with it. I just added ncurses support to see if that made any difference, but it didn't:
Code: | Calculating dependencies ...done!
[ebuild R ] app-editors/vim-6.3 -acl -cscope -debug -gpm -minimal -ncurses -nls -nls -perl -python -ruby -(selinux) -vim-with-x 1,033 kB |
Any ideas would be greatly appreciated. |
|
Back to top |
|
|
Bungopolis Apprentice
Joined: 31 Jan 2004 Posts: 198 Location: San Francisco, CA, USA
|
Posted: Sun Aug 22, 2004 7:16 am Post subject: |
|
|
I was right, it was my lack of ncurses support that made vim crappy. I had forgotten, however, to also recompile vim-core with the ncurses option.
So...
Code: | export USE="ncurses"
emerge vim && emerge vim-core |
This gave me color, no strange characters, and an all around nicer feel. |
|
Back to top |
|
|
mhodak Veteran
Joined: 15 Nov 2003 Posts: 1218
|
Posted: Sun Aug 22, 2004 9:02 am Post subject: |
|
|
Bungopolis wrote: | I was right, it was my lack of ncurses support that made vim crappy. I had forgotten, however, to also recompile vim-core with the ncurses option.
So...
Code: | export USE="ncurses"
emerge vim && emerge vim-core |
This gave me color, no strange characters, and an all around nicer feel. |
You should probably add ncurses into /etc/make.conf to have it s deault USE flag. |
|
Back to top |
|
|
Bungopolis Apprentice
Joined: 31 Jan 2004 Posts: 198 Location: San Francisco, CA, USA
|
Posted: Sun Aug 22, 2004 9:10 am Post subject: |
|
|
Yeah well I tend to have a very minimal set of use flags just as a general guideline, but carefully inspect every emerge process for the flags I want. Ncurses is a good general one though, you're right.
My system emerge, for example, was only 84,401 KB as opposed to the ~250,000 KB default set. I haven't run into any problems with having such a minimal set of flags, and I keep logs of exactly what flags I used during every emerge process so that if something doesn't work I can troubleshoot through there. |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Sun Aug 22, 2004 3:14 pm Post subject: |
|
|
For reference... Vim without ncurses uses a really really lame termcap/terminfo db which doesn't really work too well on certain setups. Best to turn on ncurses unless you know what you're doing... |
|
Back to top |
|
|
|
|
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
|
|