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

Change readonly files - 8 entries

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

  • Best score: 21
  • Best player score: 64
  • Position: #5 / 5
  • Number of attempts: 1
Append leading hyphen count to each line - 34 entries

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

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

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 51
  • Position: #22 / 41
  • Number of attempts: 1
Remove adjacent duplicates - 421 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 40
  • Position: #86 / 110
  • Number of attempts: 1
Rearrange array to single level - 1166 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: #163 / 192
  • Number of attempts: 1
Copy punctuation - 460 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: #27 / 113
  • Number of attempts: 1
Deleting text - 228 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 39
  • Position: #9 / 75
  • Number of attempts: 1
Case matching substitution - 45 entries

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

  • Best score: 31
  • Best player score: 45
  • Position: #8 / 14
  • Number of attempts: 1
Define Gray code states - 30 entries

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

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

Convert hexadecimal numbers into binary format.

  • Best score: 29
  • Best player score: 39
  • Position: #10 / 17
  • Number of attempts: 1
Count words - 49 entries

Merge duplicates and count each word.

  • Best score: 39
  • Best player score: 212
  • Position: #11 / 15
  • Number of attempts: 1
String decompression - 27 entries

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

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

Reverse only the even lines without altering the odd lines.

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

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

  • Best score: 17
  • Best player score: 180
  • Position: #22 / 25
  • Number of attempts: 1
Find anomalies - 125 entries

There is one special character per line

  • Best score: 30
  • Best player score: 31
  • Position: #11 / 34
  • Number of attempts: 1
Coordinate extraction - 51 entries

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

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

Translate Morse code to Text

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

Contributed Challenges

Change readonly files - 8 entries

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

Morse - 132 entries

Translate Morse code to Text

Coordinate extraction - 51 entries

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

String decompression - 27 entries

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

Find anomalies - 125 entries

There is one special character per line

Format a long line - 71 entries

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

Reverse even lines - 32 entries

Reverse only the even lines without altering the odd lines.

Count words - 49 entries

Merge duplicates and count each word.

Hex to binary - 78 entries

Convert hexadecimal numbers into binary format.

Define Gray code states - 30 entries

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

Case matching substitution - 45 entries

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

Deleting text - 228 entries

Delete everything except some specific numbers.

Copy punctuation - 460 entries

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

Rearrange array to single level - 1166 entries

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

Remove adjacent duplicates - 421 entries

Try to find a way to remove adjacent duplicate letters.

Word completion - 149 entries

Try to complete these options within 20 keystrokes.

Append leading hyphen count to each line - 34 entries

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

maharba6
Github:

entered into 17 challenges

contributed 17 challenges