Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda95202

Browse files
committed
Update diagnostic tool
1 parent4611a7e commitda95202

File tree

2 files changed

+51
-30
lines changed

2 files changed

+51
-30
lines changed

‎autoload/pymode/troubleshooting.vim

Lines changed: 51 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22
fun!pymode#troubleshooting#Test()"{{{
33
new
44
setlocalbuftype=nofilebufhidden=deletenoswapfilenowrap
5+
6+
let os="Unknown"
7+
ifhas('win16')||has('win32')||has('win64')
8+
let os="Windows"
9+
else
10+
let os=substitute(system('uname'),"\n","","")
11+
endif
12+
513
callappend('0', ['Pymode diagnostic',
614
\'===================',
7-
\'VIM:' .v:version .'multi_byte:' .has('multi_byte') .' pymode:' .g:pymode_version,
15+
\'VIM:' .v:version .', OS:' . os .',multi_byte:' .has('multi_byte') .', pymode:' .g:pymode_version,
816
\''])
917

1018
letpython=1
@@ -22,26 +30,48 @@ fun! pymode#troubleshooting#Test() "{{{
2230

2331
callappend('$','Pymode variables:')
2432
callappend('$','-------------------')
25-
callappend('$','pymode:' .g:pymode)
26-
callappend('$','pymode_lint:' .g:pymode_lint)
27-
callappend('$','pymode_rope:' .g:pymode_rope)
28-
callappend('$','pymode_path:' .g:pymode_path)
29-
callappend('$','pymode_doc:' .g:pymode_doc)
30-
callappend('$','pymode_run:' .g:pymode_run)
31-
callappend('$','pymode_virtualenv:' .g:pymode_virtualenv)
32-
callappend('$','pymode_breakpoint:' .g:pymode_breakpoint)
33-
callappend('$','pymode_path:' .g:pymode_path)
34-
callappend('$','pymode_folding:' .g:pymode_folding)
35-
callappend('$','pymode_syntax:' .g:pymode_syntax)
36-
callappend('$','pymode_utils_whitespaces:' .g:pymode_utils_whitespaces)
37-
callappend('$','pymode_options_indent:' .g:pymode_options_indent)
38-
callappend('$','pymode_options_other:' .g:pymode_options_other)
39-
40-
iflen(g:pymode_virtualenv_enabled)
41-
callappend('$','Enabled virtualenv:')
42-
callappend('$','-------------------')
43-
callappend('$',g:pymode_virtualenv_enabled)
44-
callappend('$','')
33+
callappend('$','let pymode =' .string(g:pymode))
34+
ifg:pymode
35+
callappend('$','let pymode_path =' .string(g:pymode_path))
36+
callappend('$','let pymode_paths =' .string(g:pymode_paths))
37+
38+
callappend('$','let pymode_doc =' .string(g:pymode_doc))
39+
ifg:pymode_doc
40+
callappend('$','let pymode_doc_key =' .string(g:pymode_doc_key))
41+
endif
42+
43+
callappend('$','let pymode_run =' .string(g:pymode_run))
44+
ifg:pymode_run
45+
callappend('$','let pymode_run_key =' .string(g:pymode_run_key))
46+
endif
47+
48+
callappend('$','let pymode_lint =' .string(g:pymode_lint))
49+
ifg:pymode_lint
50+
callappend('$','let pymode_lint_checker =' .string(g:pymode_lint_checker))
51+
callappend('$','let pymode_lint_ignore =' .string(g:pymode_lint_ignore))
52+
callappend('$','let pymode_lint_select =' .string(g:pymode_lint_select))
53+
callappend('$','let pymode_lint_onfly =' .string(g:pymode_lint_onfly))
54+
callappend('$','let pymode_lint_config =' .string(g:pymode_lint_config))
55+
callappend('$','let pymode_lint_write =' .string(g:pymode_lint_write))
56+
callappend('$','let pymode_lint_cwindow =' .string(g:pymode_lint_cwindow))
57+
callappend('$','let pymode_lint_message =' .string(g:pymode_lint_message))
58+
callappend('$','let pymode_lint_signs =' .string(g:pymode_lint_signs))
59+
callappend('$','let pymode_lint_jump =' .string(g:pymode_lint_jump))
60+
callappend('$','let pymode_lint_hold =' .string(g:pymode_lint_hold))
61+
callappend('$','let pymode_lint_minheight =' .string(g:pymode_lint_minheight))
62+
callappend('$','let pymode_lint_maxheight =' .string(g:pymode_lint_maxheight))
63+
endif
64+
65+
callappend('$','let pymode_rope =' .string(g:pymode_rope))
66+
callappend('$','let pymode_folding =' .string(g:pymode_folding))
67+
callappend('$','let pymode_breakpoint =' .string(g:pymode_breakpoint))
68+
callappend('$','let pymode_syntax =' .string(g:pymode_syntax))
69+
callappend('$','let pymode_virtualenv =' .string(g:pymode_virtualenv))
70+
ifg:pymode_virtualenv
71+
callappend('$','let pymode_virtualenv_enabled =' .string(g:pymode_virtualenv_enabled))
72+
endif
73+
callappend('$','pymode_utils_whitespaces:' .string(g:pymode_utils_whitespaces))
74+
callappend('$','pymode_options:' .string(g:pymode_options))
4575
endif
4676

4777
ifpython

‎doc/pymode.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ PythonMode. These options should be set in your vimrc.
9292

9393
|'pymode_breakpoint_key'| Key for breakpoint
9494

95-
|'pymode_utils'| Turns off utils
96-
9795
|'pymode_virtualenv'| Turns off virtualenv
9896

9997
|'pymode_utils_whitespaces'| Remove unused whitespaces
@@ -315,13 +313,6 @@ Default: '<leader>b'.
315313

316314
Key for setting/unsetting breakpoints.
317315

318-
------------------------------------------------------------------------------
319-
*'pymode_utils'*
320-
Values: 0 or 1.
321-
Default: 1.
322-
323-
If this option is set to 0 the then utils script is disabled.
324-
325316
------------------------------------------------------------------------------
326317
*'pymode_virtualenv'*
327318
Values: 0 or 1.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp