Put small animals in your text editor.
(As you know, this plugin is strongly inspired by vscode-pets)
extension pack sample -> vim-pets-ocean
Create garden with pets.
Pets [animal_name [nickname]]
After you create a garden of pets, you can add and remove pet as following.
PetsJoin animal_name [nickname]
PetsLeave [animal_name(nickname)]
You also can throw a ball
PetsThrowBall
To Close the garden, please do
PetsClose
PetsWithYou animal_name
You can call this command repeatedly. e.g.)
PetsWithYou dog
PetsWithYou dog
PetsWithYou cat
PetsWithYou rabbit
To clear pets,
PetsWithYouClear
rand()
echo exists('*rand') "=1
popupwin
ornvim
echo has('popupwin') "=1
" or
echo has('nvim') "=1
For vim-plug plugin manager:
Plug 'MeF0504/vim-pets'
g:pets_default_pet
(string): The pet name joinning when:Pets
command called without specify the pet name. default: 'dog'g:pets_lifetime_enable
(number): Enable the 'lifetime' system. If set 1, pets will go about 10 minutes after join the garden. default: 1g:pets_birth_enable
(number): Enable the 'birth' system. If set 1, new pet will born. default: 1g:pets_garden_width
(number): Width of the garden. default: &columns/2g:pets_garden_height
(number): Height of the garden. default: &lines/3g:pets_garden_pos
(list): Setting of the position of the garden. This list contains three parameters, [line(number), collum(number), position(string)].- The Available argument of position is 'topleft', 'topright', 'botleft' and 'botright'.
- In Vim, these values are assigned to the
line
,col
, andpos
parameters of popup_create-arguments. - In Neovim, these values are assigned to the
row
,col
, andanchor
parameters of nvim_open_win-config. The position argument is converted to fit thenvim_open_win
function. - default: [&lines-&cmdheight-1, &columns-1, 'botright']
- Plan to support showing image files
- sample
NOTE: This is a very challenging function. This is still limited and not stable.
- libsixel supported terminal emulator.
- img2sixel command