Skip to content

emonkak/vim-foldsort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

foldsort

foldsort is a plugin to provide a command to sort fold regions in the range.

Requirements

  • Vim 8.0 or later

Usage

Suppose there is the following content that contain some folds in the buffer:

+--  2 lines: function! B()  -----------------------------------------

+--  2 lines: function! C()  -----------------------------------------

+--  2 lines: function! A()  -----------------------------------------

You can execute :FoldSort command to sort fold regions that are closed:

+--  2 lines: function! A()  -----------------------------------------

+--  2 lines: function! B()  -----------------------------------------

+--  2 lines: function! C()  -----------------------------------------

Documentation

You can access the documentation from within Vim using :help foldsort.

About

Sort fold regions in the range

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published