From owner-freebsd-questions Fri Feb 22 17:52: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id A6B2237B404 for ; Fri, 22 Feb 2002 17:51:58 -0800 (PST) Received: from user-119a2km.biz.mindspring.com ([66.149.10.150] helo=sylvester.dsj.net) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16eRLt-0005DK-00 for freebsd-questions@freebsd.org; Fri, 22 Feb 2002 17:51:53 -0800 Received: (from dsj@localhost) by sylvester.dsj.net (8.9.3/8.9.3/Debian 8.9.3-21) id UAA23278 for freebsd-questions@freebsd.org; Fri, 22 Feb 2002 20:51:51 -0500 Date: Fri, 22 Feb 2002 20:51:51 -0500 From: "David S. Jackson" To: freebsd-questions@freebsd.org Subject: VIM and .vimrc Message-ID: <20020222205151.A23269@sylvester.dsj.net> Reply-To: "David S. Jackson" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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