From d735178838c7122c7540aca05bcfb94005a3abe9 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 15 Jul 2018 21:31:38 +0200 Subject: [PATCH] README: add Troubleshooting section Fixes https://github.com/Vimjas/vim-python-pep8-indent/issues/75. --- README.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.rst b/README.rst index ada507e..b8eb2ac 100644 --- a/README.rst +++ b/README.rst @@ -21,6 +21,8 @@ and:: Installation ------------ +Install the plugin using your favorite plugin manager / method, a few examples +follow: Pathogen ^^^^^^^^ @@ -101,6 +103,21 @@ With ``python_pep8_indent_hang_closing = 1``, closing brackets line up with the 'd', 'e', 'f', ) + +Troubleshooting +--------------- + +In case it is not working, please make sure your Vim is configured to load +indent files (``filetype indent on``). +This is typically the case when using a plugin manager, but check its docs. + +Check ``:verbose set indentexpr?`` in a Python file, which should show +something like the following: + + indentexpr=GetPythonPEPIndent(v:lnum) + Last set from ~/…/plugged/vim-python-pep8-indent/indent/python.vim + + Notes ----- -- 2.39.5