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 - 1266 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: #116 / 284
  • Number of attempts: 3
Create json from a .env file - 1658 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 43
  • Position: #84 / 407
  • Number of attempts: 6
Reordering properties - 1336 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: #228 / 294
  • Number of attempts: 1
YAML to dotenv - 1600 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 36
  • Position: #268 / 335
  • Number of attempts: 1
Generate an entry for each month - 387 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: #81 / 97
  • Number of attempts: 2
Replace markdown sections with numbering - 321 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 94
  • Position: #66 / 89
  • Number of attempts: 1
Fix the Scala Method - 368 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 / 121
  • Number of attempts: 7
Change class fields from camel case to snake case - 662 entries

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

  • Best score: 18
  • Best player score: 51
  • Position: #131 / 152
  • Number of attempts: 1
Reorganize Pokémon - 871 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 21
  • Position: #119 / 239
  • Number of attempts: 4
Replace csv column if it's not empty - 294 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: #58 / 98
  • Number of attempts: 7
Move list of uuids into a SQL query - 245 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: #45 / 82
  • Number of attempts: 2
Search different SQL column with similar where clause - 360 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: #53 / 85
  • Number of attempts: 6
Remove adjacent duplicates - 718 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 35
  • Position: #120 / 179
  • Number of attempts: 2
Move to corresponding lines - 324 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 35
  • Position: #65 / 75
  • Number of attempts: 2
New teacher - 1513 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 30
  • Position: #242 / 318
  • Number of attempts: 3
Simple text editing with Vim - 13576 entries

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

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

entered into 16 challenges

contributed 0 challenges