From owner-freebsd-questions@FreeBSD.ORG Thu Dec 9 04:34:51 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0DE616A4CE for ; Thu, 9 Dec 2004 04:34:51 +0000 (GMT) Received: from pd3mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FF9443D53 for ; Thu, 9 Dec 2004 04:34:51 +0000 (GMT) (envelope-from sfupy@shaw.ca) Received: from pd4mr6so.prod.shaw.ca (pd4mr6so-qfe3.prod.shaw.ca [10.0.141.69])2004))freebsd-questions@freebsd.org; Wed, 08 Dec 2004 21:34:51 -0700 (MST) Received: from pn2ml7so.prod.shaw.ca ([10.0.121.151]) by pd4mr6so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I8F00B0JU233BK0@pd4mr6so.prod.shaw.ca> for freebsd-questions@freebsd.org; Wed, 08 Dec 2004 21:34:51 -0700 (MST) Received: from [192.168.0.100] (S01060050180205a3.vc.shawcable.net [24.80.144.89]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0I8F00F4JU205O@l-daemon> for freebsd-questions@freebsd.org; Wed, 08 Dec 2004 21:34:49 -0700 (MST) Date: Wed, 08 Dec 2004 20:34:35 -0800 From: Phoenix Yuan To: freebsd-questions@freebsd.org Message-id: <41B7D5DB.50906@shaw.ca> Organization: Simon Fraser University MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 Subject: What's the proper way to use ctags? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: pyjunk@shaw.ca List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2004 04:34:51 -0000 Hi, Let say I want to quickly browse through all the source files in a given directory. What I tried was I ran ctags -R source_dir, which builds a tag file for the entire source. When I start vim in that directory and view files in the sub directories, tag works just fine. But when I go into other directory(outside of vim), since there is no tag file there, I can't use the tag feature anymore. I could ran ctag in all sub directories, but then I won't be able to search for functions that are define outside of the sub directory. So what's the proper way to use ctag? PS: anybody know how to redefine the ctag path for vim? I downloaded the latest from source forge but my admin said I can't replace the one in /usr/bin... thanks!