[SLL] vim is slow to launch

Brian Hatch bri at ifokr.org
Mon Jan 21 18:05:51 PST 2008


Sometime near 2008-01-21 16:04 -0800, Ryan Allen pontificated:

> Hi SSL,
> 
>    I'm experiencing a strange vim problem.  Anytime I launch vim, there
>    is a 4 second delay.  Very annoying.  This is with a mostly stock
>    ubuntu 7.10 install.  Running with -V1 reveals:
> 
> ryan at dorje:~$ /usr/bin/vim.full -V1
> XSMP opening connection   -- a few second pause --
> 
> XSMP SmcOpenConnection failed: Could not open network socket
> not found in 'runtimepath': "ftdetect/*.vim"
> Opening the X display took 0 msec
> Testing the X display failed
> Opening the X display took 0 msec
> Testing the X display failed
> Reading viminfo file "/home/ryan/.viminfo" infoOpening the X display
> took 3 msecTesting the X display failed
> Press ENTER or type command to continue
> 
> I'm sshed into the box remotely, so why is it even trying to test the X
> display?  What tells vim to do anything X?  I cannot find any config
> files, aliases or google searches about this.

Are you using X11 forwarding in ssh?  IE using 'ssh -X' or have
'ForwardX11 yes' in either /etc/ssh/ssh_config or ~/.ssh/config?

Do the following:

  * echo $DISPLAY
  * xwininfo -root
  * xeyes

If the first one is blank, the rest should say X isn't running.

If the first one isn't blank and the second ones error, then you
have a DISPLAY variable set that is invalid, and will cause any
X11 apps to complain.

vim likes to set your title bar depending on your settings, which
is a valid reason to use X11.


	

-- 
Brian Hatch                  Black holes are
   Systems and                where God
   Security Engineer          divided by zero.
http://www.ifokr.org/bri/

Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists2.linuxjournal.com/pipermail/linux-list/attachments/20080121/0fd01220/attachment.sig 


More information about the linux-list mailing list