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 - 78 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 / 27
  • Number of attempts: 4
Mr. Hacker - 78 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: #19 / 32
  • Number of attempts: 2
Python: Def to Lambda - 421 entries

LAMBDA!!!

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

Turn the x to a +

  • Best score: 19
  • Best player score: 19
  • Position: #3 / 77
  • Number of attempts: 2
Format the CSS - 115 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 / 43
  • Number of attempts: 2
Rural Post - 4313 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #549 / 1058
  • Number of attempts: 2
Satisfy the go linter - 2120 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 / 430
  • Number of attempts: 4
Yo To Hello - 1096 entries

Simply Turn Yo To Hello

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

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

  • Best score: 10
  • Best player score: 11
  • Position: #618 / 1504
  • Number of attempts: 2
Add semicolons - 10760 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1551 / 3035
  • Number of attempts: 2
Box it - 7789 entries

Create a box around a line.

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