Skip to content

Instantly share code, notes, and snippets.

@telday
Created March 13, 2020 16:32
Show Gist options
  • Save telday/8aae6cea9b5754a211e0fa457f6f3cb5 to your computer and use it in GitHub Desktop.
Save telday/8aae6cea9b5754a211e0fa457f6f3cb5 to your computer and use it in GitHub Desktop.
Windows command for viewing python docs in vim
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