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

Delete the last function argument in python. - 484 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 9
  • Position: #145 / 177
  • Number of attempts: 1
Flip All Bits - 312 entries

Perform a bitwise NOT operation on each bit, meaning that bits that are 0 become 1, and those that are 1 become 0.

  • Best score: 26
  • Best player score: 45
  • Position: #55 / 99
  • Number of attempts: 1
From brakets to parens - 1252 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: 37
  • Position: #148 / 278
  • Number of attempts: 1
Create json from a .env file - 1637 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 67
  • Position: #239 / 401
  • Number of attempts: 1
Changing date formats - 725 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 106
  • Position: #145 / 204
  • Number of attempts: 1
Fix the git merge conflicts - 342 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 60
  • Position: #62 / 102
  • Number of attempts: 1
The Fibonacci Spacer - 169 entries

Split the words, remove punctuation and add spaces before each line following the Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89)

  • Best score: 14
  • Best player score: 81
  • Position: #46 / 51
  • Number of attempts: 1
Change class fields from camel case to snake case - 651 entries

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

  • Best score: 18
  • Best player score: 29
  • Position: #102 / 149
  • Number of attempts: 2
CaN yOuR ViM dO ThAt? #1 - 292 entries

Tsoding's famous "Can your Vim do that?" https://youtu.be/Bafo3hhheHU?si=DfcT4sUEMTSAevnx&t=1091

  • Best score: 41
  • Best player score: 52
  • Position: #104 / 115
  • Number of attempts: 1
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: 72
  • Position: #60 / 82
  • Number of attempts: 1
Markdown Blog Editing - 476 entries

Convert the given link text in start file to a markdown link list.

  • Best score: 30
  • Best player score: 92
  • Position: #100 / 113
  • Number of attempts: 1
Fix timezone format - 345 entries

Add the missing T and Z in the datetime field. There should be a T instead of the space, and a Z at the end of the datetime. `2024-08-31 18:32:00;` -> `2024-08-31T18:32:00Z;`

  • Best score: 15
  • Best player score: 22
  • Position: #101 / 114
  • Number of attempts: 1
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: 33
  • Position: #72 / 85
  • Number of attempts: 1
Shreyas Ravi
Github:

entered into 13 challenges

contributed 0 challenges