> Hi all, > > I use vim as $editor with Mutt 1.5.16. When I use vim with eterm(1) on FreeBSD > CURRENT it opens instantaneously, however, occasionally I use Putty on Windows > and ssh(1) into FreeBSD and vim literally takes 20 seconds to open. $TERM is > set to xterm. > > Can anyone recommend what could be wrong ($TERM??) and or how to debug this ?
Try adding the following line to your .muttrc (or replacing the ppropriate line): set editor="vim -X" Long version: vim by default (or not) tries to connect to the X server to enable client/server behavior. Through putty there is no X server, so that fails - after a timeout (X11 is network-oriented, one needs to wait for network lag). I am guessing that the timeout on your system is set to 20 seconds ... HTH, /v -- Vincent Beffara UMPA - ENS Lyon 46 Allée d'Italie 69364 LYON cedex 07 Tel: 04 72 72 85 25 Fax: 04 72 72 84 80