Skip to content

Rasukarusan/nvim-block-paste

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Neovim plugin. Insert visual-block to anywhere!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published