You can insert visual-block to anywhere!
Remove spaces after pasted(toggle by :BlockPasteFillBlank
)
Only copy(:Block!
)
- Neovim >= 0.4
You can use the plugin manager. e.g. dein.vim
[[plugins]]
repo = 'Rasukarusan/nvim-block-paste'
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 |
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 |