@@ -2424,6 +2424,25 @@ v:progpath Contains the command with which Vim was invoked, in a form
2424
2424
".exe" is not added to v:progpath.
2425
2425
Read-only.
2426
2426
2427
+ *v:python3_version* *python3-version-variable*
2428
+ v:python3_version
2429
+ Version of Python 3 that Vim was built against. When
2430
+ Python is loaded dynamically (| python-dynamic | ), this version
2431
+ should exactly match the Python library up to the minor
2432
+ version (e.g. 3.10.2 and 3.10.3 are compatible as the minor
2433
+ version is "10", whereas 3.9.4 and 3.10.3 are not compatible).
2434
+ When | python-stable-abi | is used, this will be the minimum Python
2435
+ version that you can use instead. (e.g. if v:python3_version
2436
+ indicates 3.9, you can use 3.9, 3.10, or anything above).
2437
+
2438
+ This number is encoded as a hex number following Python ABI
2439
+ versioning conventions. Do the following to have a
2440
+ human-readable full version in hex: >
2441
+ echo printf("%08X", v:python3_version)
2442
+ < You can obtain only the minor version by doing: >
2443
+ echo and(v:python3_version>>16,0xff)
2444
+ < Read-only.
2445
+
2427
2446
*v:register* *register-variable*
2428
2447
v:register The name of the register in effect for the current normal mode
2429
2448
command (regardless of whether that command actually used a
0 commit comments