Skip to content

Jorengarenar/vim-syntaxMarkerFold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

syntaxMarkerFold

Emulates marker folds while using syntax foldmethod

Installation

MinPlug Jorengarenar/vim-syntaxMarkerFold
Plug 'Jorengarenar/vim-syntaxMarkerFold'

Vim's packages

cd ~/.vim/pack/plugins/start
git clone git://github.com/Jorengarenar/vim-syntaxMarkerFold.git

Usage

You only need to install this plugin and have foldmethod set to syntax. Markers should behave the way described in :h fold-marker (except zf and zd mappings).

Configuration

By default the max level of leveled marker (i.e. {{{1, {{{2, ...) is limited to 5. If you wish to increase it, set g:syntaxMarkerFold_maxlevel to desired value (local to buffer b:syntaxMarkerFold_maxlevel is also available).

Matching pairs markers are independent from this variable.

Minimal vimrc setup

filetype plugin on  " must be before `syntax enable`
syntax enable
set foldmethod=syntax

About

Markers while using syntax fold method

Topics

Resources

Stars

Watchers

Forks