File tree Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -44,38 +44,40 @@ Or you can just manually place `syntax/python.vim
44
44
<https://github.com/vim-python/python-syntax/blob/master/syntax/python.vim> `_
45
45
into ``~/.config/nvim/syntax/ `` or ``~/.vim/syntax/ ``.
46
46
47
- Script options
47
+ Configuration
48
48
--------------
49
49
50
50
Enable option with::
51
51
52
- let OPTION_NAME = 1
52
+ let VARIABLE = 1
53
53
54
54
Disable option with::
55
55
56
- let OPTION_NAME = 0
56
+ let VARIABLE = 0
57
57
58
- For example to enable all syntax highlighting features you can place the
59
- following command in your ``~/.config/nvim/init.vim `` or ``~/.vimrc `` script ::
58
+ For example to enable all syntax highlighting features you can add the
59
+ following command to your ``~/.config/nvim/init.vim `` or ``~/.vimrc ``::
60
60
61
61
let g:python_highlight_all = 1
62
62
63
- Options and commands to select Python version
64
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
63
+ Select Python version
64
+ ~~~~~~~~~~~~~~~~~~~~~
65
+
66
+ Variables:
65
67
66
68
``g:python_version_2 `` or ``b:python_version_2 ``
67
69
Enable highlighting for Python 2 (Python 3 highlighting is enabled by
68
70
default).
69
71
70
- The following commands can be used to switch between modes:
72
+ Commands to easily switch between modes:
71
73
72
74
``Python2Syntax ``
73
75
Switch to Python 2
74
76
``Python3Syntax ``
75
77
Switch to Python 3
76
78
77
- Other options
78
- ~~~~~~~~~~~~~
79
+ Option variables
80
+ ~~~~~~~~~~~~~~~~
79
81
80
82
``g:python_highlight_builtins ``
81
83
Highlight builtin functions and objects
Original file line number Diff line number Diff line change @@ -35,33 +35,33 @@ Configuration *python-syntax-configuration
35
35
36
36
Enable option with: >
37
37
38
- let OPTION_NAME = 1
38
+ let VARIABLE = 1
39
39
<
40
40
Disable option with: >
41
41
42
- let OPTION_NAME = 0
42
+ let VARIABLE = 0
43
43
<
44
- For example to enable all syntax highlighting features you can place the
45
- following command in your `~/.config/nvim/init.vim` or `~/.vimrc` script : >
44
+ For example to enable all syntax highlighting features you can add the
45
+ following command to your `~/.config/nvim/init.vim` or `~/.vimrc`: >
46
46
47
47
let g:python_highlight_all = 1
48
48
<
49
49
-------------------------------------------------------------------------------
50
- Options and commands to select Python version *python-syntax-version*
50
+ Select Python version *python-syntax-version*
51
51
52
52
`g:python_version_2` or `b:python_version_2`
53
53
Enable highlighting for Python 2 (Python 3 highlighting is enabled by
54
54
default).
55
55
56
- The following commands can be used to switch between modes:
56
+ Commands to easily switch between modes:
57
57
58
58
`Python2Syntax`
59
59
Switch to Python 2
60
60
`Python3Syntax`
61
61
Switch to Python 3
62
62
63
63
-------------------------------------------------------------------------------
64
- Options *python-syntax-options*
64
+ Option variables *python-syntax-options* *python-syntax-variables *
65
65
66
66
`g:python_highlight_builtins`
67
67
Highlight builtin functions and objects
You can’t perform that action at this time.
0 commit comments