Re: startup extremely slow

2007-03-29 Thread Tom Purl
On Thu, March 29, 2007 7:01 am, Jagpreet wrote:
 Hi There, I use putty to connect to remote server with telnet.  Not
 using the graphics version because of high speed with consol version.

 In the recent time I have started working some other remote server and
 I copied all my vim data(.vimrc, .vim) to this server as well.

 When I use vim command to open a file it is extremely slow in opening
 the files.  Sometimes the time to open the file is almost 90 seconds.

 Please suggest where the problem can be.

I've had this issue before when I couldn't connect to the x server.  I
know that you're not using Gvim, but I've even had this issue when
trying to use the terminal version.

Here's two things you can try:

1. Export your display variable so that it matches the IP of your
client.  For example, if your client's IP is 1.2.3.4, run the following
command on the server:

export DISPLAY=1.2.3.4:0.0

Also, you may need to have some sort of xserver running on your client,
like exceed.

2. Pass some switch to vim that forces it to ignore any display
settings.  I don't know if this setting exists.

In the end, I'm think you're having display issues.  Are there any
xserver experts out there who could give Jagpreet a less half-baked
solution?

HTH!

Tom Purl




RE: startup extremely slow

2007-03-29 Thread Tom Purl
OK, so you tried passing the -X flag when opening the file?  If so, and
it's still slow, maybe you use use the -V[N] option to see what's going
on?

On Thu, March 29, 2007 9:48 am, Jagpreet wrote:
 Thanks for your quick reply.

 Well I'm not using any X-server nor do I intend to.

   I just find that I logon to server with SSH instead of telnet(as server
 doesn't support this).

 All I want to use vim in consol mode because it works very fast, and is
 working on other server with the same settings.
 After the file gets open it works as expected but its very long time it
 takes to open the file.

 So far as display settings are concerned I have that in .bashrc file and
 I'm
 exporting DISPLAY variable anyways. I tried the same with without setting
 that as well but result is the same.

 Not sure whats happening.



 -Original Message-
 From: Tom Purl [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 29, 2007 7:51 PM
 To: A.J.Mechelynck
 Cc: Jagpreet; vim@vim.org
 Subject: Re: startup extremely slow

 On Thu, March 29, 2007 9:16 am, A.J.Mechelynck wrote:
 To avoid trying to connect with an X server in an X-enabled console
 Vim (which could be a console version with clipboard support, or a GUI
 version being run in console mode), use -X on the shell command line
 for Vim, thus:

  vim -X foobar.txt

 Thanks a ton Richard and Tony!  This is a much easier solution to my
 problem than what I'm doing today (setting the DISPLAY var).

 Does this help you Jagpreet?

 Tom Purl