nvim-block-paste icon indicating copy to clipboard operation
nvim-block-paste copied to clipboard

Neovim plugin. Insert visual-block to anywhere!

Nvim-Block-Paste

You can insert visual-block to anywhere!

Demo

Remove spaces after pasted(toggle by :BlockPasteFillBlank)

Only copy(:'<,'>Block!)

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 
delete selected block not delete selected block
g:block_paste_fill_blank = 0 g:block_paste_fill_blank = 1