Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put [challenge ID]

Played Challenges

C to python code snippet - 88 entries

C code can be easily translated into Python code. However, the difference in syntax can make this process tedious and time-consuming. Can Vim help you here?

  • Best score: 48
  • Best player score: 48
  • Position: #1 / 30
  • Number of attempts: 4
Mr. Hacker - 89 entries

Elvin is hacker. He has piece of users database from some social net site. Recently he installed Vim, and he wants to convert CSV DB to specific format `key=value' where `key' is login and `value' is password, but password in DB is encrypted in ROT13. Help him.

  • Best score: 19
  • Best player score: 20
  • Position: #22 / 35
  • Number of attempts: 2
Python: Def to Lambda - 455 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #20 / 156
  • Number of attempts: 1
Turn the x - 328 entries

Turn the x to a +

  • Best score: 19
  • Best player score: 19
  • Position: #3 / 82
  • Number of attempts: 2
Format the CSS - 158 entries

You just copied some CSS color names from the web and need to add them to your python module. Create the COLORS variable and assign a dict() with the names as keys and hex-colors as values. BEWARE OF THE TABS!!

  • Best score: 41
  • Best player score: 41
  • Position: #1 / 49
  • Number of attempts: 2
Rural Post - 4485 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 13
  • Position: #576 / 1099
  • Number of attempts: 2
Satisfy the go linter - 2391 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 20
  • Position: #48 / 471
  • Number of attempts: 4
Yo To Hello - 1130 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #212 / 524
  • Number of attempts: 1
Simple, Practical, and Common - 33621 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #2229 / 7422
  • Number of attempts: 8
prepend * to every non-blank line - 6318 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 11
  • Position: #636 / 1539
  • Number of attempts: 2
Add semicolons - 10867 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1559 / 3065
  • Number of attempts: 2
Box it - 7906 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #374 / 1877
  • Number of attempts: 1
Tom Dalling
Twitter:

Software developer & writeabouterer. Hot takes and grumbling into the void. Opinions here are exactly those of my employer, and form a binding contract. 👨‍⚖️

entered into 12 challenges

contributed 0 challenges