Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VIM slow to open
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
userundefine
n00b
n00b


Joined: 27 Jun 2007
Posts: 2

PostPosted: Wed Jun 27, 2007 11:42 pm    Post subject: VIM slow to open Reply with quote

userundefine@nomadsland:~$ time vim test
real 0m8.348s
user 0m0.056s
sys 0m0.016s

I've removed my .viminfo and .vimrc to no avail. Still very slow to open, but not to function once it is open. Not sure how to fix this...
Back to top
View user's profile Send private message
pi-rho
n00b
n00b


Joined: 31 Oct 2005
Posts: 25
Location: Texas

PostPosted: Thu Jun 28, 2007 3:50 am    Post subject: Reply with quote

#1 - What's "test" -- is it a big file?

#2 - try :scriptnames ... it shows every script sourced by vim on startup, in the order they were processed... any one of those (or the sheer number of them) could be the culprit)

#3 - did you build it with X support? There is a known issue with vim built with X clipboard support running without X ... vim tries to "talk" the the X server before it gives you control of the UI

:version then look for +xterm_clipboard in the Features block to determine if this is the case

If it has the X goodies compiled in, and you don't have X running, start vim like this:

vim -X test

(:help -X)
_________________
---
pi-rho
Back to top
View user's profile Send private message
userundefine
n00b
n00b


Joined: 27 Jun 2007
Posts: 2

PostPosted: Thu Jun 28, 2007 5:15 am    Post subject: Reply with quote

#1 "test" was simply a new file, didn't exist before. Took 8 seconds to open a new file.

+xterm_clipboard was there, thanks for that info. For some reason, though, it's starting quicker now even not having used the -X switch. Can't really explain it, maybe that magical reboot stuff.

Now it's:

real 0m2.100s
user 0m0.064s
sys 0m0.020s

I'll keep your advice in mind if this problem comes back in the future, though. So much I don't know about vim!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum