On 07/31/2012 11:08 AM, Gary Johnson wrote:
> On 2012-07-31, ping wrote:
>
>> I tried these debugging tools but still have no clear clue.
>> I even tried vim -V temp1.log or vim -V4 temp1.log, the 1st part of
>> the result flushed away from my screen and I couldn't capture
>> anything into here, from the rest of the output I couldn't find
>> anything related to /etc/vim
>
> If you immediately follow the -V argument by a filename (i.e.,
> without an intervening space), the debug information will be
> captured to that file instead of being spewed across your screen.  I
> think level 2 will capture what we're interested in here.
>
>      vim -V2verboselog [other arguments]
>
> Regards,
> Gary
>
thanks! that's another good tip to learn about debugging vim.
so I tried that:
vim -V2temp-vim-verbose-log temp1.log
and from the result temp-vim-verbose-log file I couldn't find a match on 
/etc/vim:
ping@640g-laptop:~$ grep "/etc/vim" temp-vim-verbose-log
ping@640g-laptop:~$
so I tried another raw method: I open all 10 scripts from :scriptnames 
captures, and did a search into them:
:scriptnames
   1: /usr/share/vim/vimrc
   2: /usr/share/vim/vim73/syntax/syntax.vim
   3: /usr/share/vim/vim73/syntax/synload.vim
   4: /usr/share/vim/vim73/syntax/syncolor.vim
   5: /usr/share/vim/vim73/filetype.vim
   6: /home/ping/.vim/ftdetect/csv.vim
   7: /home/ping/.vim/ftdetect/mkd.vim
   8: /home/ping/.vim/ftdetect/myft.vim
   9: /home/ping/.vim/ftdetect/taskpaper.vim
  10: /etc/vim/ftdetect/asciidoc_filetype.vim           <-----------
ping@640g-laptop:~$ vim /usr/share/vim/vimrc 
/usr/share/vim/vim73/syntax/syntax.vim 
/usr/share/vim/vim73/syntax/synload.vim 
/usr/share/vim/vim73/syntax/syncolor.vim 
/usr/share/vim/vim73/filetype.vim /home/ping/.vim/ftdetect/csv.vim 
/home/ping/.vim/ftdetect/mkd.vim /home/ping/.vim/ftdetect/myft.vim 
/home/ping/.vim/ftdetect/taskpaper.vim
and only 1 file contains an close entry:
"/usr/share/vim/vimrc"
    51 " Source a global configuration file if available
    52 if filereadable("/etc/vim/vimrc.local")
    53   source /etc/vim/vimrc.local
    54 endif
    55
   ~ 
 
~ 
 
/usr/share/vim/vimrc
but even that doesn't explain why this script was involved here:
  10: /etc/vim/ftdetect/asciidoc_filetype.vim
-- 
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
No comments:
Post a Comment