3 ms·
Does this affect performance in any way? 1k+ lines is quite a lot.
by rplnt 15y ago
Does this affect performance in any way? 1k+ lines is quite a lot.
- stevelosh 15y agoIn any way? Of course. But my laptop has 8 gigabytes of RAM, a solid state hard drive, and four processor cores. I can run Minecraft at the highest settings while accidentally leaving a Linux VM running in the background. Loading a 1.5k vimrc file is barely a blip on the processor graph.
- sashahart 15y agovimrc affects startup time, but like any program it isn't the lines but the work done which will make it slow or fast. How slowly does your computer read a 1000-line text file? vim is fast, setting some parameters in vimrc doesn't change that. Avoiding configuration that will make your life easier out of fears about performance is premature optimization. If you have a ton of autocmds for frequent events, things can slow down. I also find that things can get slow when LOTS of calls are made to a language other than Vimscript. But fundamentally, run Eclipse and Netbeans and gedit and emacs - vim should compare favorably even with a ton of config. If you want to actually profile your startup time, try this on a recent version of vim: vim --startuptime=vim.log
- aidenn0 15y agoIn my experience a huge .vimrc loading tons of plugins is not much. It's completely dwarfed by the overhead of starting X11 gvim, for example.