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

From brakets to parens - 866 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 34
  • Position: #83 / 203
  • Number of attempts: 3
Create json from a .env file - 1486 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 43
  • Position: #73 / 346
  • Number of attempts: 6
Reordering properties - 1120 entries

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

  • Best score: 24
  • Best player score: 106
  • Position: #202 / 264
  • Number of attempts: 1
YAML to dotenv - 1431 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 36
  • Position: #237 / 295
  • Number of attempts: 1
Generate an entry for each month - 364 entries

The input file contains a URI with a month in it. Generate the URIs for all the other months up to a couple of years

  • Best score: 27
  • Best player score: 83
  • Position: #75 / 90
  • Number of attempts: 2
Replace markdown sections with numbering - 303 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 94
  • Position: #59 / 80
  • Number of attempts: 1
Fix the Scala Method - 300 entries

Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.

  • Best score: 2
  • Best player score: 22
  • Position: #33 / 96
  • Number of attempts: 7
Change class fields from camel case to snake case - 549 entries

This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513

  • Best score: 18
  • Best player score: 51
  • Position: #108 / 128
  • Number of attempts: 1
Reorganize Pokémon - 762 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #110 / 211
  • Number of attempts: 4
Replace csv column if it's not empty - 255 entries

Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched

  • Best score: 15
  • Best player score: 16
  • Position: #53 / 87
  • Number of attempts: 7
Move list of uuids into a SQL query - 223 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: #43 / 72
  • Number of attempts: 2
Search different SQL column with similar where clause - 320 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: 27
  • Position: #48 / 73
  • Number of attempts: 6
Remove adjacent duplicates - 666 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 35
  • Position: #109 / 167
  • Number of attempts: 2
Move to corresponding lines - 307 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 35
  • Position: #61 / 69
  • Number of attempts: 2
New teacher - 1465 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 30
  • Position: #232 / 306
  • Number of attempts: 3
Simple text editing with Vim - 13369 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2077 / 3834
  • Number of attempts: 6
Sjur B.
Github:

entered into 16 challenges

contributed 0 challenges