Start anew
[msysgit.git] / share / vim / vim58 / bugreport.vim
blob8e61e8748e501b2958b07271ac7361953f63113e
1 :" Use this script to create the file "bugreport.txt", which contains
2 :" information about the environment of a possible bug in Vim.
3 :"
4 :" Maintainer:  Bram Moolenaar <Bram@vim.org>
5 :" Last change: 2000 Feb 15
6 :"
7 :" To use inside Vim:
8 :"      :so $VIMRUNTIME/bugreport.vim
9 :" Or, from the command line:
10 :"      vim -s $VIMRUNTIME/bugreport.vim
12 :" The "if 1" lines are to avoid error messages when expression evaluation is
13 :" not compiled in.
15 :if 1
16 :  let more_save = &more
17 :endif
18 :set nomore
19 :if has("unix")
20 :  !echo "uname -a" >bugreport.txt
21 :  !uname -a >>bugreport.txt
22 :endif
23 :redir >>bugreport.txt
24 :version
25 :if 1
26 :  func BR_CheckDir(n)
27 :    if isdirectory(a:n)
28 :      echo 'directory "' . a:n . '" exists'
29 :    else
30 :      echo 'directory "' . a:n . '" does NOT exist'
31 :    endif
32 :  endfun
33 :  func BR_CheckFile(n)
34 :    if filereadable(a:n)
35 :      echo '"' . a:n . '" is readable'
36 :    else
37 :      echo '"' . a:n . '" is NOT readable'
38 :    endif
39 :  endfun
40 :  echo "--- Directories and Files ---"
41 :  echo '$VIM = "' . $VIM . '"'
42 :  call BR_CheckDir($VIM)
43 :  echo '$VIMRUNTIME = "' . $VIMRUNTIME . '"'
44 :  call BR_CheckDir($VIMRUNTIME)
45 :  call BR_CheckFile(&helpfile)
46 :  call BR_CheckFile(fnamemodify(&helpfile, ":h") . "/tags")
47 :  call BR_CheckFile($VIMRUNTIME . "/menu.vim")
48 :  call BR_CheckFile($VIMRUNTIME . "/filetype.vim")
49 :  call BR_CheckFile($VIMRUNTIME . "/syntax/synload.vim")
50 :  delfun BR_CheckDir
51 :  delfun BR_CheckFile
52 :endif
53 :set all
54 :set termcap
55 :if has("autocmd")
56 :  au
57 :endif
58 :if 1
59 :  echo "--- Normal mode mappings ---"
60 :endif
61 :map
62 :if 1
63 :  echo "--- Insert mode mappings ---"
64 :endif
65 :map!
66 :if 1
67 :  echo "--- Abbreviations ---"
68 :endif
69 :ab
70 :if 1
71 :  echo "--- Highlighting ---"
72 :endif
73 :highlight
74 :if 1
75 :  echo "--- Variables ---"
76 :endif
77 :if 1
78 :  let
79 :endif
80 :redir END
81 :set more&
82 :if 1
83 :  let &more = more_save
84 :endif
85 :e bugreport.txt