nvim-block-paste
nvim-block-paste copied to clipboard
Neovim plugin. Insert visual-block to anywhere!
Nvim-Block-Paste
You can insert visual-block to anywhere!
Demo
![](https://user-images.githubusercontent.com/17779386/106469918-42713000-64e3-11eb-87df-b6a2dcd505c4.gif)
Remove spaces after pasted(toggle by :BlockPasteFillBlank
)
![](https://user-images.githubusercontent.com/17779386/106455970-49427780-64d0-11eb-9d67-eb34d2abcef0.gif)
Only copy(:'<,'>Block!
)
![](https://user-images.githubusercontent.com/17779386/112155541-bfd63880-8c28-11eb-84ce-c7f59904e240.gif)
Requirement
- Neovim >= 0.4
Install
You can use the plugin manager. e.g. dein.vim
[[plugins]]
repo = 'Rasukarusan/nvim-block-paste'
Usage
Select blockwise by Ctrl-v and execute :Block
:'<,'>Block
or if you want only copy, use !
.
:'<,'>Block!
keybind | description |
---|---|
h/H | move left the block |
j/J | move down the block |
k/K | move up the block |
l/L | move right the block |
p | put the block |
u | undo |
Settings
You can set whether to delete the selected block or replace it with a space.
Default 0 (replace with a space).
let g:block_paste_fill_blank = 1
You can toggle by BlockPasteFillBlank
command.
:BlockPasteFillBlank
![]() |
![]() |
g:block_paste_fill_blank = 0 |
g:block_paste_fill_blank = 1 |