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

Sort and Tag - 1 entries

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

  • Best score: 59
  • Best player score: 59
  • Position: #1 / 1
  • Number of attempts: 1
Changing date formats - 74 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 86
  • Position: #18 / 28
  • Number of attempts: 1
Change to ascending order - 139 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 152
  • Position: #34 / 39
  • Number of attempts: 1
Change readonly files - 33 entries

Try to write a file that was marked as read-only.

  • Best score: 20
  • Best player score: 64
  • Position: #12 / 12
  • Number of attempts: 1
Append leading hyphen count to each line - 47 entries

Append the number of leading hyphens to the end of each line.

  • Best score: 23
  • Best player score: 60
  • Position: #14 / 14
  • Number of attempts: 1
Word completion - 185 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 51
  • Position: #25 / 51
  • Number of attempts: 1
Remove adjacent duplicates - 445 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 40
  • Position: #92 / 117
  • Number of attempts: 1
Rearrange array to single level - 1298 entries

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

  • Best score: 14
  • Best player score: 43
  • Position: #176 / 205
  • Number of attempts: 1
Copy punctuation - 487 entries

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

  • Best score: 19
  • Best player score: 28
  • Position: #28 / 121
  • Number of attempts: 1
Deleting text - 254 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 39
  • Position: #10 / 81
  • Number of attempts: 1
Case matching substitution - 55 entries

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

  • Best score: 31
  • Best player score: 45
  • Position: #9 / 15
  • Number of attempts: 1
Define Gray code states - 36 entries

List the states using Gray code and assign Gray code values to each state.

  • Best score: 56
  • Best player score: 118
  • Position: #10 / 11
  • Number of attempts: 1
Hex to binary - 88 entries

Convert hexadecimal numbers into binary format.

  • Best score: 29
  • Best player score: 39
  • Position: #11 / 18
  • Number of attempts: 1
Count words - 62 entries

Merge duplicates and count each word.

  • Best score: 39
  • Best player score: 212
  • Position: #13 / 17
  • Number of attempts: 1
String decompression - 31 entries

3a4b2c => aaabbbbcc. Start a new line when you exceed 79 columns.

  • Best score: 27
  • Best player score: 64
  • Position: #11 / 11
  • Number of attempts: 1
Reverse even lines - 33 entries

Reverse only the even lines without altering the odd lines.

  • Best score: 7
  • Best player score: 16
  • Position: #8 / 12
  • Number of attempts: 1
Format a long line - 80 entries

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

  • Best score: 17
  • Best player score: 180
  • Position: #23 / 26
  • Number of attempts: 1
Find anomalies - 148 entries

There is one special character per line

  • Best score: 30
  • Best player score: 31
  • Position: #14 / 39
  • Number of attempts: 1
Coordinate extraction - 55 entries

Get the coordinates of all "M"s from the Vim logo

  • Best score: 43
  • Best player score: 51
  • Position: #10 / 16
  • Number of attempts: 1
Morse - 148 entries

Translate Morse code to Text

  • Best score: 31
  • Best player score: 69
  • Position: #20 / 33
  • Number of attempts: 1

Contributed Challenges

Change readonly files - 33 entries

Try to write a file that was marked as read-only.

Morse - 148 entries

Translate Morse code to Text

Coordinate extraction - 55 entries

Get the coordinates of all "M"s from the Vim logo

String decompression - 31 entries

3a4b2c => aaabbbbcc. Start a new line when you exceed 79 columns.

Find anomalies - 148 entries

There is one special character per line

Format a long line - 80 entries

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

Reverse even lines - 33 entries

Reverse only the even lines without altering the odd lines.

Count words - 62 entries

Merge duplicates and count each word.

Hex to binary - 88 entries

Convert hexadecimal numbers into binary format.

Define Gray code states - 36 entries

List the states using Gray code and assign Gray code values to each state.

Case matching substitution - 55 entries

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

Deleting text - 254 entries

Delete everything except some specific numbers.

Copy punctuation - 487 entries

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

Rearrange array to single level - 1298 entries

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

Remove adjacent duplicates - 445 entries

Try to find a way to remove adjacent duplicate letters.

Word completion - 185 entries

Try to complete these options within 20 keystrokes.

Change to ascending order - 139 entries

Change each line of numbers consistently from descending to ascending order.

Append leading hyphen count to each line - 47 entries

Append the number of leading hyphens to the end of each line.

Changing date formats - 74 entries

Change the date format to Y/M/D.

Sort and Tag - 1 entries

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

maharba6
Github:

entered into 20 challenges

contributed 20 challenges