@@ -46,12 +46,12 @@ Then the plugin will work and you can enjoy sound effect when you are typing in
46
46
47
47
Avaliable themes are:
48
48
49
- - ` default `
50
- - ` typewriter `
51
- - ` mario `
52
- - ` sword `
53
- - ` bubble `
54
-
49
+ - ` default `
50
+ - ` typewriter `
51
+ - ` mario `
52
+ - ` sword `
53
+ - ` bubble `
54
+
55
55
Additional sound themes can be found in ` sounds ` directory in your ` runtimepath ` , that is your ` ~/.vim/sounds ` or ` /path-to-dotfiles/sounds ` .
56
56
57
57
Change python version:
@@ -83,42 +83,42 @@ keysound#playsound(wavfile, volume)
83
83
84
84
## Requirements
85
85
86
- - Python or Python3 integration in vim
87
- - [ PySDL2] ( https://github.com/marcusva/py-sdl2 ) with SDL2 binaries.
88
-
89
- PySDL2 is used to provide low-latency audio playback.
90
-
91
- ### Ubuntu
92
-
93
- Just install ` python-sdl2 ` or ` python3-sdl2 ` with ` apt-get ` , depend on your python version in vim:
94
-
95
- ``` bash
96
- apt-get install python-sdl2
97
- ```
98
-
99
- or
100
-
101
- ``` bash
102
- apt-get install python3-sdl2
103
- ```
104
-
105
- ### openSUSE
106
-
107
- Install ` python-sdl2 ` or ` python3-sdl2 ` and ` libSDL2_mixer-2_0-0 ` with ` zypper ` , depend on your python version in vim:
108
-
109
- ``` bash
110
- zypper install python-sdl2 libSDL2_mixer-2_0-0
111
- ```
112
-
113
- or
114
-
115
- ``` bash
116
- zypper install python3-sdl2 libSDL2_mixer-2_0-0
117
- ```
118
-
86
+ - Python or Python3 integration in vim
87
+ - [ PySDL2] ( https://github.com/marcusva/py-sdl2 ) with SDL2 binaries.
88
+
89
+ PySDL2 is used to provide low-latency audio playback.
90
+
91
+ ### Ubuntu
92
+
93
+ Just install ` python-sdl2 ` or ` python3-sdl2 ` with ` apt-get ` , depend on your python version in vim:
94
+
95
+ ``` bash
96
+ apt-get install python-sdl2
97
+ ```
98
+
99
+ or
100
+
101
+ ``` bash
102
+ apt-get install python3-sdl2
103
+ ```
104
+
105
+ ### openSUSE
106
+
107
+ Install ` python-sdl2 ` or ` python3-sdl2 ` and ` libSDL2_mixer-2_0-0 ` with ` zypper ` , depend on your python version in vim:
108
+
109
+ ``` bash
110
+ zypper install python-sdl2 libSDL2_mixer-2_0-0
111
+ ```
112
+
113
+ or
114
+
115
+ ``` bash
116
+ zypper install python3-sdl2 libSDL2_mixer-2_0-0
117
+ ```
118
+
119
119
### Windows
120
120
121
- Install pysdl2 in python or python3:
121
+ Install pysdl2 in python or python3:
122
122
123
123
``` batch
124
124
pip install pysdl2
@@ -136,8 +136,23 @@ You can verify your SDL2 installation by `python -c "import sdl2"`. If there is
136
136
137
137
### Mac OS X
138
138
139
- Install pysdl2 and sdl2 shared librarys by brew.
139
+ Install pysdl2 in python or python3:
140
+
141
+ ``` batch
142
+ pip install pysdl2
143
+ ```
144
+
145
+ or
146
+
147
+ ``` batch
148
+ pip3 install pysdl2
149
+ ```
150
+
151
+ Install sdl2 with brew:
140
152
153
+ ``` batch
154
+ brew install sdl2
155
+ ```
141
156
142
157
# About
143
158
0 commit comments