A modular Vim/Neovim configuration

Home | About | Quick start guide | Documentation | Development | Community | Sponsors | 中文

Available Layers » foldsearch


This layer provides functions that fold away lines that don’t match a specific search pattern. The search pattern can be a word or a regular expression.


To use this layer, add it to your configuration file.

    name = "foldsearch"

This layer requires at least one search tool: ag, rg, ack, pt and grep, Choose your favorite one.


    name = "foldsearch"
    foldsearch_highlight = false

Key bindings

Key bindings Description
SPC F w foldsearch input word
SPC F W foldsearch cursor word
SPC F p foldsearch regular expression
SPC F e end foldsearch

Powered by Jekyll