Vim paste like TETRIS. Paste the contents of the clipboard from the top with animation.
- Neovim (0.4+)
- +clipboard
This plugin uses floating window and Neovim API.
Plug 'Rasukarusan/vim-tetris-paste'call dein#add('Rasukarusan/vim-tetris-paste')use 'Rasukarusan/vim-tetris-paste'{ 'Rasukarusan/vim-tetris-paste' }Press T in normal mode to paste clipboard content with TETRIS animation.
Supports dot-repeat (.) - no additional plugin required.
Or use the command:
:TetrisPaste" Animation interval (ms) - larger is slower - default: 10
let g:tetris_paste_speed = 10
" Screen row the block starts falling from.
" When the cursor is above this row, the block falls from the top of the screen.
" default: 10
let g:tetris_paste_start_row = 10
" Highlight color - default: 'guifg=#ffffff guibg=#dd6900'
let g:tetris_paste_highlight = 'guifg=#ffffff guibg=#dd6900'
" Window transparency (0-100) - default: 40
let g:tetris_paste_winblend = 40
" Disable default key mapping (T)
let g:tetris_paste_no_default_key = 1" Disable default mapping
let g:tetris_paste_no_default_key = 1
" Set your own mapping (with dot-repeat support)
nnoremap <silent> <Leader>p :set opfunc=tetris_paste#opfunc<CR>g@lMIT
