top | item 11594962

Ask HN: Vim starup time for opening 1000 lines code file

1 points| drake01 | 10 years ago | reply

Hi vim users,

What's average startup time for opening, say a 1000 line python/c/<your favorite programming lang> file?

How to find startup time:

[0]~$ vim --startuptime ~/recordtime.log a-file-with-say-1000-lines-code

Now the file ~/recordtime.log 's last line: shows time (milliseconds) in first column with comment "--- VIM STARTED ---". That's vim startup time.

For me:

* Startup time :2885.87 milliseconds

* Number of lines :3719

* Programming Lang :python

* Config :hacked version of spf-13-vim https://github.com/spf13/spf13-vim (956 line .vimrc and ~120 bundles(plugins) being sourced.

* VIM version (vim --version) :VIM - Vi IMproved 7.4

* Operating system cat /etc/lsb-release for ubuntu :Ubuntu 14.04

* Share hardware details if you want..

* Any other relevant information.

Interested users may use above format or whatever works for you!

Please note:

Don't get in flame wars on Usenet (or anywhere else). [ http://www.catb.org/esr/faqs/hacker-howto.html ]

3 comments

order
[+] johncoltrane|10 years ago|reply
3 seconds is ridiculous.

Vim 7.4.1707 in Terminal.app on Mac OS X 10.10.5, on a MacBook from 2013.

232.570 milliseconds for a 10376 lines CSS file.

101.498 milliseconds for a 4756 lines Python file.

[+] drake01|10 years ago|reply
I know, 3 seconds is really bad. that happens because of python-mode plugin that I use.

https://github.com/klen/python-mode

It takes 1300 ms (of those 2800 ms)

I am still trying to trim it down or maybe soon will abandon it.

[+] bmuursh|10 years ago|reply
165ms for 2000 or so lines of C for VIM 7.4.52 on a HP envy running arch