Vim logo vim online Vim Book Ad

TeTrIs.vim : A tetris game in pure vim

 script karma  Rating 297/105, Downloaded by 3030

created by
Gergely Kontra
 
script type
game
 
description
A funny way to get used to VIM's h k l and <Space> key.
The first (I hope) interactive game inside pure VIM!
It's a work-in-progress version.

Todo:
- better random
- better timing
- shorter code

If you like games, also see Sokoban vimscript#211!
 
install details
Source it! Press :source TeTrIs.vim<Enter>

To start the game, press <Leader>te.
(If you don't know what is <Leader>, you should press \te, and type :help Leader<Enter> to learn about what the heck leader is)
Controls:
h: left
l: right
j: down
i,k: rotate
<Space>: drop
<Esc> or q: quit
(if you have more or other keys, which help you to learn VIM, please send me the mail)
p: pause game To restore, press <Leader>te in any window!

*** Save everything, before you begin to play ***
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
tetris.vim 0.52fix 27-Feb-2002 6.0 Gergely Kontra norm -> norm! to protect from M$-win's remappings
tetris.vim 0.52 20-Feb-2002 6.0 Michael Geddes Fixed massive slowdown when key pressed.
Fix up window positioning when ending and showing highscore.
TeTrIs.vim 0.51 19-Feb-2002 6.0 Gergely Kontra New timing, bug fixes, Name is stored in script-variable.
TeTrIs.vim 0.5 14-Feb-2002 6.0 Gergely Kontra New mode, top10, better colors, improved rotation, new timing, speedup, animations
TeTrIs.vim 0.4 04-Feb-2002 6.0 Michael Geddes Colour, speeds, extra keys, the missing piece. Lotsa stuff.
TeTrIs.vim 0.1 03-Jan-2002 6.0 Gergely Kontra Initial upload

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
SourceForge Logo