Hi,

I have been using Vim-LateX for years, and it has been EXTREMELY helpful.

However, I recently noticed that it is taking a VERY LONG time (minutes!!)
to load up files that are long (well, still negligible time when using
emacs or vim -u NONE filename.tex).Note the huge jump in time after
sourcing main.vim below. After loading, it works fine.

Below is the output when I run:

$gvim --startuptime startup.log filename.tex

I have tried the latest version (and other tips I have seen on web:

autocmd FileType tex :NoMatchParen
au FileType tex setlocal nocursorline


I am using Vim 7.4 on Linux (Ubuntu).

Since this is such a PHENOMENAL tool, I would appreciate if this is
resolved.

*************

times in msec
 clock   self+sourced   self:  sourced script
 clock   elapsed:              other lines

000.005  000.005: --- VIM STARTING ---
000.090  000.085: Allocated generic buffers
000.136  000.046: locale set
000.153  000.017: GUI prepared
000.155  000.002: clipboard setup
000.162  000.007: window checked
000.568  000.406: inits 1
000.616  000.048: parsing arguments
000.621  000.005: expanding arguments
000.644  000.023: shell init
000.848  000.204: Termcap init
000.885  000.037: inits 2
000.986  000.101: init highlight
001.315  000.220  000.220: sourcing /usr/share/vim/vim74/debian.vim
001.670  000.182  000.182: sourcing /usr/share/vim/vim74/syntax/syncolor.vim
001.785  000.353  000.171: sourcing /usr/share/vim/vim74/syntax/synload.vim
019.766  000.041  000.041: sourcing /usr/share/vim/vim74/autoload/paste.vim
029.466  010.662  010.621: sourcing /usr/share/vim/vim74/menu.vim
029.498  027.660  016.998: sourcing /usr/share/vim/vim74/filetype.vim
029.543  028.173  000.160: sourcing /usr/share/vim/vim74/syntax/syntax.vim
029.571  028.541  000.148: sourcing $VIM/vimrc
029.668  000.010  000.010: sourcing /usr/share/vim/vim74/filetype.vim
029.760  000.038  000.038: sourcing /usr/share/vim/vim74/ftplugin.vim
029.833  000.009  000.009: sourcing /usr/share/vim/vim74/filetype.vim
029.919  000.033  000.033: sourcing /usr/share/vim/vim74/indent.vim
029.979  000.368  000.278: sourcing $HOME/.vimrc
029.988  000.093: sourcing vimrc file(s)
030.279  000.108  000.108: sourcing /home/guest/.vim/plugin/SpellChecker.vim
030.485  000.174  000.174: sourcing /home/guest/.vim/plugin/SyntaxFolds.vim
030.686  000.169  000.169: sourcing /home/guest/.vim/plugin/filebrowser.vim
031.331  000.616  000.616: sourcing /home/guest/.vim/plugin/imaps.vim
031.481  000.112  000.112: sourcing /home/guest/.vim/plugin/libList.vim
032.227  000.712  000.712: sourcing /home/guest/.vim/plugin/prtdialog.vim
032.372  000.101  000.101: sourcing /home/guest/.vim/plugin/remoteOpen.vim
032.664  000.074  000.074: sourcing
/usr/share/vim/vim74/plugin/getscriptPlugin.vim
032.918  000.226  000.226: sourcing /usr/share/vim/vim74/plugin/gzip.vim
033.126  000.177  000.177: sourcing
/usr/share/vim/vim74/plugin/matchparen.vim
033.619  000.462  000.462: sourcing
/usr/share/vim/vim74/plugin/netrwPlugin.vim
033.701  000.039  000.039: sourcing /usr/share/vim/vim74/plugin/rrhelper.vim
033.767  000.032  000.032: sourcing
/usr/share/vim/vim74/plugin/spellfile.vim
033.968  000.166  000.166: sourcing
/usr/share/vim/vim74/plugin/tarPlugin.vim
034.105  000.093  000.093: sourcing /usr/share/vim/vim74/plugin/tohtml.vim
034.296  000.158  000.158: sourcing
/usr/share/vim/vim74/plugin/vimballPlugin.vim
034.527  000.189  000.189: sourcing
/usr/share/vim/vim74/plugin/zipPlugin.vim
034.567  000.971: loading plugins
034.574  000.007: inits 3
055.378  000.960  000.960: sourcing $VIMRUNTIME/menu.vim
055.479  000.049  000.049: sourcing $VIM/gvimrc
383.730  348.147: starting GUI
386.554  002.824: reading viminfo
389.155  002.601: GUI delay
389.818  000.663: register server name
389.824  000.006: setting raw mode
389.828  000.004: start termcap
389.995  000.167: clearing screen
428.651  020.103  020.103: sourcing /usr/share/vim/vim74/syntax/tex.vim
428.830  000.009  000.009: sourcing /home/guest/.vim/ftplugin/tex.vim
431.490  002.377  002.377: sourcing
/home/guest/.vim/ftplugin/latex-suite/texrc
463.293  002.243  002.243: sourcing
/home/guest/.vim/ftplugin/latex-suite/texproject.vim
465.092  001.737  001.737: sourcing
/home/guest/.vim/ftplugin/latex-suite/texmenuconf.vim
466.298  000.457  000.457: sourcing
/home/guest/.vim/ftplugin/latex-suite/wizardfuncs.vim
486.512  021.350  020.893: sourcing
/home/guest/.vim/ftplugin/latex-suite/envmacros.vim
503.492  016.906  016.906: sourcing
/home/guest/.vim/ftplugin/latex-suite/elementmacros.vim
547.870  044.291  044.291: sourcing
/home/guest/.vim/ftplugin/latex-suite/mathmacros.vim
558.936  010.926  010.926: sourcing
/home/guest/.vim/ftplugin/latex-suite/multicompile.vim
559.445  000.414  000.414: sourcing
/home/guest/.vim/ftplugin/latex-suite/compiler.vim
559.750  000.200  000.200: sourcing
/home/guest/.vim/ftplugin/latex-suite/folding.vim
564.329  004.518  004.518: sourcing
/home/guest/.vim/ftplugin/latex-suite/templates.vim
565.441  001.042  001.042: sourcing
/home/guest/.vim/ftplugin/latex-suite/custommacros.vim
566.137  000.605  000.605: sourcing
/home/guest/.vim/ftplugin/latex-suite/bibtex.vim
581.961  015.724  015.724: sourcing
/home/guest/.vim/ftplugin/latex-suite/packages.vim
581.000  153.002  030.669: sourcing
/home/guest/.vim/ftplugin/latex-suite/main.vim
271433.582  001.437  001.437: sourcing /home/guest/.vim/compiler/tex.vim
272024.611  000.081  000.081: sourcing
/home/guest/.vim/ftplugin/latex-suite/packages/amsmath
272043.759  000.070  000.070: sourcing
/home/guest/.vim/ftplugin/latex-suite/packages/cite
272047.613  000.046  000.046: sourcing
/home/guest/.vim/ftplugin/latex-suite/packages/graphicx
272059.663  000.060  000.060: sourcing
/home/guest/.vim/ftplugin/latex-suite/packages/url
272064.032  271636.092  271481.396: sourcing
/home/guest/.vim/ftplugin/tex_latexSuite.vim
272064.351  000.213  000.213: sourcing
/home/guest/.vim/ftplugin/tex/brackets.vim
272064.412  000.016  000.016: sourcing
/home/guest/.vim/ftplugin/tex/smartspace.vim
272064.893  000.442  000.442: sourcing
/home/guest/.vim/ftplugin/tex/texviewer.vim
272065.157  000.073  000.073: sourcing
/usr/share/vim/vim74/ftplugin/initex.vim
272065.206  000.168  000.095: sourcing
/usr/share/vim/vim74/ftplugin/plaintex.vim
272065.258  000.273  000.105: sourcing /usr/share/vim/vim74/ftplugin/tex.vim
272065.610  000.092  000.092: sourcing /home/guest/.vim/indent/tex.vim
272065.717  000.052  000.052: sourcing /usr/share/vim/vim74/indent/tex.vim
272065.911  019.624: opening buffers
272065.939  000.028: BufEnter autocommands
272065.941  000.002: editing files in windows
272067.381  001.440: VimEnter autocommands
272067.383  000.002: before starting main loop
272080.590  013.207: first screen update
272080.594  000.004: --- VIM STARTED ---


***********

FYI, my simple .vimrc:

******************
" REQUIRED. This makes vim invoke latex-suite when you open a tex file.
filetype plugin on

" IMPORTANT: win32 users will need to have 'shellslash' set so that latex
" can be called correctly.
set shellslash

" IMPORTANT: grep will sometimes skip displaying the file name if you
" search in a singe file. This will confuse latex-suite. Set your grep
" program to alway generate a file-name.
set grepprg=grep\ -nH\ $*

" OPTIONAL: This enables automatic indentation as you type.
filetype indent on

" this is mostly a matter of taste. but LaTeX looks good with just a bit
" of indentation.
set sw=2
" TIP: if you write your \label's as \label{fig:something}, then if you
" type in \ref{fig: and press <C-n> you will automatically cycle through
" all the figure labels. Very useful!
set iskeyword+=:


**************
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to