Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/s1n7ax/nvim-lazy-inner-block

Remap inner block operations without letter i
https://github.com/s1n7ax/nvim-lazy-inner-block

lua neovim neovim-plugin nvim operators plugin

Last synced: 3 months ago
JSON representation

Remap inner block operations without letter i

Awesome Lists containing this project

README

        

# nvim-lazy-inner-block

Maps `d`, `c`, `y`, `v` operator inside block operations directly to block characters.

for example to delete inside `()` usually you would use `di(`but this plugin
remaps it to `d(`.

Following are the new mappings

here `_` is one of `d`, `c`, `y`, `v` operators

| Previous bind | New bind |
| ------------- | -------- |
| `_i(` | `_(` |
| `_i)` | `_)` |
| `_i{` | `_{` |
| `_i}` | `_}` |
| `_i[` | `_[` |
| `_i]` | `_]` |
| `_i>` | `_>` |
| `_i'` | `_'` |
| `_i"` | `_"` |
| ``_i` `` | ``_` ``

## Install

### Packer

```lua
use {
's1n7ax/nvim-lazy-inner-block',
config = function()
require('nvim-lary-inner-block').setup()
end
}
```