From owner-freebsd-questions@FreeBSD.ORG Thu Jan 22 12:20:04 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 C6A1316A4CE for ; Thu, 22 Jan 2004 12:20:04 -0800 (PST) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E3F943D1F for ; Thu, 22 Jan 2004 12:20:03 -0800 (PST) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.30; FreeBSD) id 1AjlJ3-000FI8-Eu; Thu, 22 Jan 2004 20:20:01 +0000 Date: Thu, 22 Jan 2004 20:20:01 +0000 From: Jez Hancock To: Tillman Hodgson Message-ID: <20040122202001.GC52737@users.munk.nu> Mail-Followup-To: Tillman Hodgson , FreeBSD-Questions References: <20040122174346.GL54472@seekingfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040122174346.GL54472@seekingfire.com> User-Agent: Mutt/1.4.1i Sender: Jez Hancock cc: FreeBSD-Questions Subject: Re: Vim startup time much longer than expected X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2004 20:20:04 -0000 On Thu, Jan 22, 2004 at 11:43:46AM -0600, Tillman Hodgson wrote: > Howdy folks, > > I NFS export my home directory from a 4-STABLE box. In this home > directory are my .vimrc file and a couple of vim plugins that I use. > > When I launch vim (which I use with mutt) from a workstation running > RedHat 7.3 it loads and is ready for input virtually instantly. When I > launch vim from the server itself (local disk!) it takes several seconds > before it's ready for input. > > As the config files are identical, I can't think of what else might be > causing the difference. Perhaps compile options for the vim port (I use > -WITHOUT_X on the FreeBSD server end)? I had this problem before and iirc found it was due to the size of my vim history setting. Given what you say below though, perhaps this isn't your problem here. > It does seem, though I haven't attempted to profile or trace the process, > that it's hanging much longer while displaying this in the status line: > > "Pattern not found: ^> -- .*" > > That's the result of my quoted .sig dumper for email replies (and thus > isn't called when I'm composing a new mail): > > """ EMAIL > " Make VIM use shorter lines for emails > au BufNewFile,BufRead .letter,mutt*,nn.*,snd.* set tw=72 > " Delete quoted .sig's > au BufRead /tmp/mutt-* normal :g/^> -- .*/,/^$/-1d > > I don't understand why that would be faster on the workstation (which is > half the box CPU-wise and NFS'ed) than the server. Perhaps the FreeBSD > port of vim (6.2 rather than 6.1 on the client) incorporates a > deliberate delay for warnings like that? Perhaps you could add a 'shortmess' line to the .vimrc file to inhibit those messages? -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - Another FreeBSD Diary http://ipfwstats.sf.net/ - ipfw peruser traffic logging