Skip to content

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Vim TETRIS Paste

Vim paste like TETRIS. Paste the contents of the clipboard from the top with animation.

Demo

Requirements

  • Neovim (0.4+)
  • +clipboard

This plugin uses floating window and Neovim API.

Installation

vim-plug

Plug 'Rasukarusan/vim-tetris-paste'

dein.vim

call dein#add('Rasukarusan/vim-tetris-paste')

packer.nvim

use 'Rasukarusan/vim-tetris-paste'

lazy.nvim

{ 'Rasukarusan/vim-tetris-paste' }

Usage

Press T in normal mode to paste clipboard content with TETRIS animation.

Supports dot-repeat (.) - no additional plugin required.

Or use the command:

:TetrisPaste

Configuration

" 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

Custom key mapping

" 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@l

License

MIT

About

👾 vim-tetris-paste animates text insertion like falling Tetris blocks, adding a playful touch to Vim editing.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages