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 - 36 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 / 11
  • Number of attempts: 4
Mr. Hacker - 33 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: #12 / 16
  • Number of attempts: 2
Python: Def to Lambda - 179 entries

LAMBDA!!!

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

Turn the x to a +

  • Best score: 19
  • Best player score: 19
  • Position: #3 / 40
  • Number of attempts: 2
Format the CSS - 47 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 / 21
  • Number of attempts: 2
Rural Post - 3731 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #466 / 919
  • Number of attempts: 2
Satisfy the go linter - 1521 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 / 315
  • Number of attempts: 4
Yo To Hello - 883 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #212 / 414
  • Number of attempts: 1
Simple, Practical, and Common - 32746 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: #2230 / 7235
  • Number of attempts: 8
prepend * to every non-blank line - 5776 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #588 / 1421
  • Number of attempts: 2
Add semicolons - 10429 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1520 / 2954
  • Number of attempts: 2
Box it - 7622 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #375 / 1819
  • 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