Skip to content

campbsb/vim-python-folding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

vim-python-folding

Vim ftplugin for smart Python code folding

Simply copy the pythonfolding.vim file into your .vim/ftplugin/python directory

You will want the following lines in your .vimrc:

set nocompatible           " Required for filetype specific configuration
filetype plugin indent on  " Enables plugins based on filetype.

This module seeks to

  • Don't fold everything - only fold classes, functions, and the file headers
  • Have 'pie' decorators included into the fold of the function they are decorating, but have the fold still display the function name
  • Have fast performance
  • Display a useful set of initial folds, not the whole file in a single fold!

About

Vim ftplugin for smart Python code folding

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published