Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/s1n7ax/nvim-lazy-inner-block
- Owner: s1n7ax
- License: mit
- Created: 2021-07-28T18:33:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T14:48:28.000Z (4 months ago)
- Last Synced: 2024-08-04T20:58:56.635Z (4 months ago)
- Topics: lua, neovim, neovim-plugin, nvim, operators, plugin
- Language: Lua
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
```