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

Create json from a .env file - 1240 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 58
  • Position: #133 / 287
  • Number of attempts: 1
YAML to dotenv - 1153 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 46
  • Position: #218 / 254
  • Number of attempts: 1
Change class fields from snake case to camel case - 267 entries

Change the class fields in this Scala class from snake case to camel case

  • Best score: 13
  • Best player score: 20
  • Position: #91 / 101
  • Number of attempts: 3
Reorganize Pokémon - 675 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 27
  • Position: #155 / 187
  • Number of attempts: 2
Move list of uuids into a SQL query - 196 entries

Take the list of UUIDs and use them as a filter in the where statement of a SQL query

  • Best score: 57
  • Best player score: 68
  • Position: #42 / 66
  • Number of attempts: 1
Search different SQL column with similar where clause - 292 entries

Replace a column in the where clause and convert all numbers from text to numeric, by replacing the leading 0 with the code 359.

  • Best score: 22
  • Best player score: 31
  • Position: #53 / 67
  • Number of attempts: 3
Remove adjacent duplicates - 614 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 47
  • Position: #143 / 159
  • Number of attempts: 1
Move to corresponding lines - 285 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 31
  • Position: #54 / 66
  • Number of attempts: 1
Rearrange array to single level - 1613 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 30
  • Position: #169 / 269
  • Number of attempts: 1
Copy punctuation - 640 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 39
  • Position: #93 / 157
  • Number of attempts: 5
Deleting text - 297 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 46
  • Position: #58 / 97
  • Number of attempts: 1
New teacher - 1405 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 26
  • Position: #162 / 296
  • Number of attempts: 1
months to html list items - 1106 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 27
  • Position: #183 / 300
  • Number of attempts: 1
Find fix point of cos - 1435 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #265 / 426
  • Number of attempts: 2
Swap values - 4656 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Position: #1105 / 1281
  • Number of attempts: 3
Swap values inside brackets - 2523 entries

Easy challenge.

  • Best score: 13
  • Best player score: 20
  • Position: #421 / 587
  • Number of attempts: 1
Applying same text modification in several lines - 2915 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 22
  • Position: #754 / 863
  • Number of attempts: 3
SCREAMING_SNAKE_CASE to Title Case - 1250 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: #200 / 260
  • Number of attempts: 1
Com(m)a Trouble - 3941 entries

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

  • Best score: 12
  • Best player score: 24
  • Position: #718 / 892
  • Number of attempts: 3
That hyphen - 2602 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 18
  • Position: #652 / 704
  • Number of attempts: 4
Flip the bit - 136 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 10
  • Position: #74 / 77
  • Number of attempts: 1
Todo list specification - 405 entries

The every item on the todo list must be done today. Modify the list to reflect that.

  • Best score: 37
  • Best player score: 40
  • Position: #167 / 183
  • Number of attempts: 1
Build a six - 307 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 27
  • Position: #86 / 100
  • Number of attempts: 1
Increment each number - 1043 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 38
  • Position: #238 / 255
  • Number of attempts: 2
abcd > a b c d - 299 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #211 / 228
  • Number of attempts: 1
A simple change - 476 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 15
  • Position: #154 / 196
  • Number of attempts: 2
Vertical Limit - 2596 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 35
  • Position: #724 / 767
  • Number of attempts: 2
Switch function arguments - 2182 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Position: #590 / 674
  • Number of attempts: 1
Generate English Alphabets - 508 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 27
  • Position: #171 / 211
  • Number of attempts: 3
Insert a Markdown link - 462 entries

Put a link in a markdown document, using the after-the-paragraph format.

  • Best score: 22
  • Best player score: 28
  • Position: #127 / 153
  • Number of attempts: 1
Reformat most common surnames - 776 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 42
  • Position: #179 / 225
  • Number of attempts: 1
Remember FizzBuzz? - 751 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 95
  • Position: #181 / 198
  • Number of attempts: 1
Change the content of a string - 1705 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #348 / 627
  • Number of attempts: 1
Simple text editing with Vim - 13244 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 15
  • Position: #2193 / 3803
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7355 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 7
  • Best player score: 56
  • Position: #1589 / 1819
  • Number of attempts: 1
Will Powers
Github:

entered into 35 challenges

contributed 0 challenges