Monday, April 14, 2014

Re: Many problems, how to debug on startup

* Nikolay Pavlov <zyx.vim@gmail.com> [140414 11:22]:
> > capture those messages in a file 'gvim -V20 > debug.txt' doesn't
> > give me any results. Which syntax should I use?
>
> You should set &verbosefile option in --cmd.
Thanks for the prompt reply -
I have placed set verbose=1
in my .gvimrc
Now when I start gvim, I got a whole lot of error messages of the
sort like
'not found in 'runtimepath': "bitmaps/Open.png"'
I think that is a holdover from macvim - but I don't why gvim is
attempting to load those images or what to do about it.
>
> >
> > 2)Once I have gvim started, I'm getting erratic results when I
> > restore a session. Some sessions are fine, others have the syntax
> > highlight turned off and I can't get it to resume, among other
> > issues...
> > -- similarly, I need a process to step through the session
> > restoration.
>
> You can use :debug or use &verbose with &verbosefile, but I doubt this will
> help. These are helpful if you need to determine what and why is run, but
> much less helpful if you need to determine why something is *not* run.
Using :debug from command I can see the following

"repeat.txt" [readonly] 680L, 27209C
Reading viminfo file "/home/tim/.viminfo" marks
not found in 'runtimepath': "ftplugin/text.vim ftplugin/text_*.vim
ftplugin/text
/*.vim"
not found in 'runtimepath': "indent/text.vim"
not found in 'runtimepath': "syntax/text.vim syntax/text/*.vim"
not found in 'runtimepath': "indent/help.vim"
not found in 'runtimepath': "indent/help.vim"
"
I see my runtimepath as

/home/tim/.vim,
/var/lib/vim/addons,
/usr/share/vim/vimfiles,
/usr/share/vim/vim71,
/usr/share/vim/vimfiles/after,
/var/lib/vim/addons/after,
/home/tim/.vim/after

The fourth path is messed up - there is no /usr/share/vim/vim71
should be /usr/share/vim/vim73 (I presume).

So, how to fix runtimepath?

thanks again

--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment