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

Markdown Blog Editing - 197 entries

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

  • Best score: 30
  • Best player score: 45
  • Position: #26 / 52
  • Number of attempts: 3
Word completion - 116 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 49
  • Position: #18 / 37
  • Number of attempts: 3
Fix timezone format - 186 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: 17
  • Position: #24 / 61
  • Number of attempts: 4
Search different SQL column with similar where clause - 116 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: 25
  • Position: #19 / 36
  • Number of attempts: 3
Remove adjacent duplicates - 367 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 21
  • Position: #28 / 103
  • Number of attempts: 8
Rearrange array to single level - 1094 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #23 / 186
  • Number of attempts: 3
Rearrange array to one line - 521 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 19
  • Position: #51 / 129
  • Number of attempts: 1
Copy punctuation - 419 entries

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

  • Best score: 19
  • Best player score: 33
  • Position: #46 / 106
  • Number of attempts: 4
Change LaTex itemizations formats - 103 entries

Inspired by the way my professor formats their LaTeX assignments.

  • Best score: 43
  • Best player score: 75
  • Position: #9 / 17
  • Number of attempts: 5
Case matching substitution - 45 entries

Swap every "lorem" for "ipsum", keeping the letter cases the same.

  • Best score: 31
  • Best player score: 120
  • Position: #13 / 14
  • Number of attempts: 5
Format a long line - 71 entries

Reformat long lines (gq), textwidth=78, no trailing spaces.

  • Best score: 17
  • Best player score: 29
  • Position: #14 / 25
  • Number of attempts: 6
Evil Numbers - 72 entries

Print the first 100 evil numbers https://oeis.org/A001969. This is an advert for code.golf https://code.golf/evil-numbers#viml

  • Best score: 25
  • Best player score: 123
  • Position: #18 / 21
  • Number of attempts: 2
Find anomalies - 125 entries

There is one special character per line

  • Best score: 30
  • Best player score: 41
  • Position: #20 / 34
  • Number of attempts: 5
Morse - 131 entries

Translate Morse code to Text

  • Best score: 31
  • Best player score: 61
  • Position: #15 / 30
  • Number of attempts: 3
New teacher - 836 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 20
  • Position: #27 / 174
  • Number of attempts: 9
months to html list items - 957 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 25
  • Position: #118 / 254
  • Number of attempts: 2
Remove line numbers - 694 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 9
  • Best player score: 13
  • Position: #101 / 189
  • Number of attempts: 6
Find fix point of cos - 1359 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: #241 / 394
  • Number of attempts: 1
Another Mixed-Up Haiku - 250 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 45
  • Position: #83 / 88
  • Number of attempts: 1
rhasarub
Github:

entered into 19 challenges

contributed 0 challenges