Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 938 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 938 Bytes

#vim-docstring

Python docstrings are great for helping others, but are sometimes too verbose for a developer. Fold them with ease with this vim plugin.

Install

If you use pathogen just clone to your bundle.

cd ~/.vim/bundle
git clone [email protected]:yhat/vim-docstring

If not, just stick ftplugin/python.vim in your .vim/ftplugin directory somewhere.

Usage

This vim plugin defines exactly one command which you can auto-load by adding the following to your .vimrc.

autocmd FileType python PyDocHide

Use the following vim commands to manipulate the folded docstrings.

  • za: Toggle current fold.
  • zo: Open the current fold.
  • zc: Close the current fold.

See more help on the vim wiki.

To manually redraw the folds use the command :PyDocHide