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 - 44 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 / 15
  • Number of attempts: 4
Mr. Hacker - 37 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: #13 / 18
  • Number of attempts: 2
Python: Def to Lambda - 243 entries

LAMBDA!!!

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

Turn the x to a +

  • Best score: 19
  • Best player score: 19
  • Position: #3 / 54
  • Number of attempts: 2
Format the CSS - 66 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 / 27
  • Number of attempts: 2
Rural Post - 3894 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #493 / 964
  • Number of attempts: 2
Satisfy the go linter - 1811 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 / 363
  • Number of attempts: 4
Yo To Hello - 1000 entries

Simply Turn Yo To Hello

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

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

  • Best score: 10
  • Best player score: 11
  • Position: #596 / 1439
  • Number of attempts: 2
Add semicolons - 10480 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1526 / 2972
  • Number of attempts: 2
Box it - 7667 entries

Create a box around a line.

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