Ask HN: Vim starup time for opening 1000 lines code file
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 ]
[+] [-] johncoltrane|10 years ago|reply
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
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