Created
March 13, 2020 16:32
-
-
Save telday/8aae6cea9b5754a211e0fa457f6f3cb5 to your computer and use it in GitHub Desktop.
Windows command for viewing python docs in vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo off | |
if "%1" == "" GOTO fail | |
python -m pydoc %1 > %1.txt | |
vim %1.txt | |
rm %1.txt | |
goto end | |
:fail | |
echo This program requires the name of a module as the argument | |
:end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment