Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jan 2004 20:20:01 +0000
From:      Jez Hancock <jez.hancock@munk.nu>
To:        Tillman Hodgson <tillman@seekingfire.com>
Cc:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   Re: Vim startup time much longer than expected
Message-ID:  <20040122202001.GC52737@users.munk.nu>
In-Reply-To: <20040122174346.GL54472@seekingfire.com>
References:  <20040122174346.GL54472@seekingfire.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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