Tuesday, February 1, 2011

Fwd: Re: Determining if Vim is running in text-console mode or X Windows

-------- Original Message --------
Subject: Re: Determining if Vim is running in text-console mode or X Windows
Date: Wed, 02 Feb 2011 01:02:55 +1100
From: Steve Laurie <mr.steven.laurie@gmail.com>
To: Ben Schmidt <mail_ben_schmidt@yahoo.com.au>

On 02/02/11 00:24, Ben Schmidt wrote:
>>>> So you basically distinguish it by inspecting your $TERM variable.
>>>> First
>>>> determine in both situations what your $TERM is set to, then put
>>>> something
>>>> like this in your .vimrc
>>> Ah, I mis-read the post. Clearer now :)
>>>
>> Thanks for your help. unfortunately, none of these suggestions work.
>>
>> If I had some way of changing $TERM from cons25 to xterm-256color
>> when Xorg starts
>> up, that would work.
>> I tried putting export TERM="xterm-256color" in my .xinitrc file but
>> it doesn't
>> change.
>> I also tried exporting it from Window Maker's
>> ~/GNUstep/Library/WindowMaker/autostart file but that didn't work
>> either.
>>
>> I can't get it to change from cons25
>
> This seems very strange. $TERM is usually set appropriately by your
> terminal program in X.
>
> Are you sure something else isn't changing it, e.g. ~/.profile,
> ~/.bashrc, /etc/profile (or other rc files for your shell)? Or is there
> an option in the GUI for your X terminal that has been incorrectly set
> to make $TERM something it shouldn't be?
>
> You are using Vim in a terminal, either in the console or in an X
> terminal, right? Not Gvim.
>
> Ben.
>
>
>
Thank you very much. It's working now. I was setting TERM manually in my
~/.bashrc and that was screwing it up.
I took it out, used cons25 and xterm in my ~/.vimrc file and now,
everything's working beautifully.

Thank you all so much for your help.

Regards,
Steve Laurie

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: