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

Yo To Hello - 615 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
prepend * to every non-blank line - 4411 entries

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

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 2
Mr. Hacker - 22 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
  • Number of attempts: 2
Rural Post - 1425 entries

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

  • Best score: 9
  • Best player score: 13
  • Number of attempts: 2
Format the CSS - 37 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
  • Number of attempts: 2
Satisfy the go linter - 852 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
  • Number of attempts: 4
Simple, Practical, and Common - 31281 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
  • Number of attempts: 8
Turn the x - 78 entries

Turn the x to a +

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 2
Box it - 6817 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 1
Add semicolons - 8981 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 2
C to python code snippet - 29 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
  • Number of attempts: 4
Python: Def to Lambda - 78 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • 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