An open API service indexing awesome lists of open source software.

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

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.