https://github.com/simonrw/search-in-scope.vim
Search within a scope
https://github.com/simonrw/search-in-scope.vim
Last synced: over 1 year ago
JSON representation
Search within a scope
- Host: GitHub
- URL: https://github.com/simonrw/search-in-scope.vim
- Owner: simonrw
- License: apache-2.0
- Created: 2021-08-07T13:25:00.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-11T12:31:51.000Z (almost 5 years ago)
- Last Synced: 2025-02-06T08:45:16.405Z (over 1 year ago)
- Language: Lua
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# search-in-scope.vim
Search within a scope.
This plugin works with files that define scopes with braces (e.g. C, php, rust) as well as files that define scopes with
indentation (yaml, python).
## Setup
For example with packer:
```lua
require('packer').startup(function(use)
use 'mindriot101/search-in-scope.vim'
end)
require('search_in_scope').setup({
-- example keybinding
bind = "S",
-- add additional file types into the scope definition types
indent_filetypes = {"yaml"},
braces_filetypes = {"c"},
})
```
Then hit the `S` keyboard combination. This will set the command buffer up for searching within the scope as
defined by the filetype.