Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2002 20:51:51 -0500
From:      "David S. Jackson" <deepbsd@earthlink.net>
To:        freebsd-questions@freebsd.org
Subject:   VIM and .vimrc
Message-ID:  <20020222205151.A23269@sylvester.dsj.net>

next in thread | raw e-mail | index | archive | help
Hi,

I'm still looking for the answer to this in :help and on vim.org,
but no joy so far.

I want to dynamically set the term for vim in my .vimrc:  I want
vim to detect whether it's being run in an xterm (or the like) or
in a tty.  The logic would be something like:

  if "this is an xterm "
     set term=xterm-color
  else
     set term=builtin_pcansi
  fi   

How can I say this in my .vimrc?

-- 
David S. Jackson                        dsj@dsj.net
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
There comes a time in the affairs of a man when he has
to take the bull by the tail and face the situation.
		-- W.C. Fields

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020222205151.A23269>