mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
30 lines
694 B
Markdown
30 lines
694 B
Markdown
|
---
|
||
|
title: "SpaceVim foldsearch layer"
|
||
|
description: "This layer provides functions that fold away lines that don't match a specific search pattern."
|
||
|
---
|
||
|
|
||
|
# [Available Layers](../) >> foldsearch
|
||
|
|
||
|
<!-- vim-markdown-toc GFM -->
|
||
|
|
||
|
- [Description](#description)
|
||
|
- [Key bindings](#key-bindings)
|
||
|
|
||
|
<!-- vim-markdown-toc -->
|
||
|
|
||
|
## Description
|
||
|
|
||
|
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 enable this layer:
|
||
|
|
||
|
```toml
|
||
|
[layers]
|
||
|
name = "foldsearch"
|
||
|
```
|
||
|
|
||
|
## Key bindings
|
||
|
|
||
|
| Key bindings | Description |
|
||
|
| ------------ | --------------------- |
|
||
|
| `SPC F w` | foldsearch input word |
|