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

Simple, Practical, and Common - 33552 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: 23
  • Position: #2720 / 7401
  • Number of attempts: 7
Hogwarts Email Sorting - 915 entries

Given a list of emails, get the students full name and their associated house.

  • Best score: 20
  • Best player score: 24
  • Position: #187 / 259
  • Number of attempts: 3
prepend * to every non-blank line - 6291 entries

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

  • Best score: 10
  • Best player score: 15
  • Position: #909 / 1533
  • Number of attempts: 5
One number per line - 18705 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2541 / 3855
  • Number of attempts: 4
SCREAMING_SNAKE_CASE to Title Case - 1214 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 31
  • Position: #189 / 249
  • Number of attempts: 10
Add semicolons - 10841 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #2016 / 3058
  • Number of attempts: 3
Com(m)a Trouble - 3780 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Position: #288 / 855
  • Number of attempts: 4
Box it - 7897 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Position: #525 / 1872
  • Number of attempts: 6
Copy three lines - 2872 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 18
  • Position: #347 / 640
  • Number of attempts: 4
Just the middle - 11418 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2999 / 4182
  • Number of attempts: 2
I forgot quotes - 15956 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #3054 / 4171
  • Number of attempts: 2
attr_aligner - 3498 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 104
  • Position: #694 / 696
  • Number of attempts: 1
Words in parens - 12918 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 19
  • Position: #3158 / 3957
  • Number of attempts: 3
Stairs Indenting - 473 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 14
  • Position: #133 / 197
  • Number of attempts: 8
Chris League
Twitter:

Computer science professor at LIU Brooklyn, interested in functional programming, type systems, and CS education. One of Zoë’s dads (he/him). 🏳️‍🌈 ✊🏾

entered into 14 challenges

contributed 0 challenges