ariciputi / jpythonfold.vim Goto Github PK
View Code? Open in Web Editor NEWThis project forked from vim-scripts/jpythonfold.vim
A better python fold script
Home Page: http://www.vim.org/scripts/script.php?script_id=2527
This project forked from vim-scripts/jpythonfold.vim
A better python fold script
Home Page: http://www.vim.org/scripts/script.php?script_id=2527
This is a mirror of http://www.vim.org/scripts/script.php?script_id=2527 This script allows automatically folding of Python code. It completely rewritten from Jorrit Wiersma's script (vimscript #515; other competitors are vimscript#781 and vimscript#2002). The folding and fold text are completely rewritten: the algorithm systematically set up, so it behaves as accurate as possible (at the cost of some speed). Main feature of this script is that it folds empty space, saving lots of screen space (although you can turn it off, see below). Classes and defs are folded, of course. Indent zero comments separating classes and defs are not folded, so you see the global divisions in your code. Global code is folded in blocks (separated by comments). There are three options. To use them, check the script: - Keep empty lines out of a fold (giving more readable classes with folded functions, but using more screen space). - Ignore non-python files. - Allow for multiline class definitions (at the cost of folding comments starting with the word "class") or stricter def checking (missing multiline defs). Known bug: - multiline strings that look like code are handled as such (basically unfixable, actually) Example: ------------------------ #unfolded comment def foo: #folded comment #also folded bar = 5 #unfolded, but the empty line above this one is folded with the function #code below will be folded a = 5 b = 6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.