Mercurial > vim
annotate runtime/bugreport.vim @ 35025:6fb237b639ac
runtime(doc): update documentation
Commit: https://github.com/vim/vim/commit/f7a38650eaf6dd4612fc31f85b6f0d4c6e06567f
Author: RestorerZ <restorer@mail2k.ru>
Date: Mon Apr 22 20:55:32 2024 +0200
runtime(doc): update documentation
closes: https://github.com/vim/vim/issues/14616
Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 22 Apr 2024 21:00:11 +0200 |
parents | 4027cefc2aab |
children |
rev | line source |
---|---|
7 | 1 :" Use this script to create the file "bugreport.txt", which contains |
2 :" information about the environment of a possible bug in Vim. | |
3 :" | |
32770
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
15729
diff
changeset
|
4 :" Maintainer: The Vim Project <https://github.com/vim/vim> |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
15729
diff
changeset
|
5 :" Last change: 2023 Aug 10 |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
15729
diff
changeset
|
6 :" Former Maintainer: Bram Moolenaar <Bram@vim.org> |
7 | 7 :" |
8 :" To use inside Vim: | |
9 :" :so $VIMRUNTIME/bugreport.vim | |
10 :" Or, from the command line: | |
11 :" vim -s $VIMRUNTIME/bugreport.vim | |
12 :" | |
13 :" The "if 1" lines are to avoid error messages when expression evaluation is | |
14 :" not compiled in. | |
15 :" | |
16 :if 1 | |
17 : let more_save = &more | |
18 :endif | |
19 :set nomore | |
20 :if has("unix") | |
21 : !echo "uname -a" >bugreport.txt | |
22 : !uname -a >>bugreport.txt | |
23 :endif | |
24 :redir >>bugreport.txt | |
25 :version | |
26 :if 1 | |
27 : func <SID>CheckDir(n) | |
28 : if isdirectory(a:n) | |
29 : echo 'directory "' . a:n . '" exists' | |
30 : else | |
31 : echo 'directory "' . a:n . '" does NOT exist' | |
32 : endif | |
33 : endfun | |
34 : func <SID>CheckFile(n) | |
35 : if filereadable(a:n) | |
36 : echo '"' . a:n . '" is readable' | |
37 : else | |
38 : echo '"' . a:n . '" is NOT readable' | |
39 : endif | |
40 : endfun | |
41 : echo "--- Directories and Files ---" | |
42 : echo '$VIM = "' . $VIM . '"' | |
43 : call <SID>CheckDir($VIM) | |
44 : echo '$VIMRUNTIME = "' . $VIMRUNTIME . '"' | |
45 : call <SID>CheckDir($VIMRUNTIME) | |
46 : call <SID>CheckFile(&helpfile) | |
47 : call <SID>CheckFile(fnamemodify(&helpfile, ":h") . "/tags") | |
48 : call <SID>CheckFile($VIMRUNTIME . "/menu.vim") | |
49 : call <SID>CheckFile($VIMRUNTIME . "/filetype.vim") | |
50 : call <SID>CheckFile($VIMRUNTIME . "/syntax/synload.vim") | |
51 : delfun <SID>CheckDir | |
52 : delfun <SID>CheckFile | |
323 | 53 : echo "--- Scripts sourced ---" |
54 : scriptnames | |
7 | 55 :endif |
56 :set all | |
57 :set termcap | |
15729 | 58 :au |
7 | 59 :if 1 |
60 : echo "--- Normal/Visual mode mappings ---" | |
61 :endif | |
62 :map | |
63 :if 1 | |
64 : echo "--- Insert/Command-line mode mappings ---" | |
65 :endif | |
66 :map! | |
67 :if 1 | |
68 : echo "--- Abbreviations ---" | |
69 :endif | |
70 :ab | |
71 :if 1 | |
72 : echo "--- Highlighting ---" | |
73 :endif | |
74 :highlight | |
75 :if 1 | |
76 : echo "--- Variables ---" | |
77 :endif | |
78 :if 1 | |
79 : let | |
80 :endif | |
81 :redir END | |
82 :set more& | |
83 :if 1 | |
84 : let &more = more_save | |
85 : unlet more_save | |
86 :endif | |
87 :e bugreport.txt |