Skip to content

skywind3000/vim-keysound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it ?

This plugin can play typewriter sound in Vim when you are typing a letter. ⚡

You can use it along with the typewriter color scheme, and feel like you are really typing on a typewriter.

Installation

vim-plug

Plug 'skywind3000/vim-keysound'

vundle

Plugin `skywind3000/vim-keysound`

Configuration

Enable keysound from start:

let g:keysound_enable = 1

Command :KeysoundEnable and :KeysoundDisable can be used to manually start/stop the plugin if g:keysound_enable is not assigned.

Choose a sound theme:

let g:keysound_theme = 'default'

Then the plugin will work and you can enjoy sound effect when you are typing in insert mode.

Avaliable themes are: default, typewriter and mario. Additional sound themes can be found in sounds directory in your runtimepath, that is your ~/.vim/sounds or /path-to-your-dotfiles/sounds.

Change python version:

let g:keysound_py_version = 3

Both 2 and 3 are available. It is assigned to zero by default, and will choose python automatically, change it to 2 or 3 if you need specify the python version.

Requirements

Ubuntu

Just install python-sdl2 or python3-sdl2 with apt-get, depend on your python version in vim:

apt-get install python-sdl2

or

apt-get install python3-sdl2

Windows

Install pysdl2 in python or python3:

pip install pysdl2

or

pip3 install pysdl2

Download SDL2.dll from here, SDL2_mixer.dll from here. Put the two files into your python's installation directory.

You can verify your SDL2 installation by python -c "import sdl2". If there is no exceptions, your installation is fine.

Mac OS X

Install pysdl2 and sdl2 shared librarys by brew.

About

TODO

About

🍷 Play typewriter sound in Vim when you are typing a letter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •