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 to ascending order - 8 entries

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

  • Best score: 23
  • Best player score: 152
  • Position: #3 / 3
  • Number of attempts: 1
Change readonly files - 25 entries

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

  • Best score: 20
  • Best player score: 64
  • Position: #10 / 10
  • 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 - 178 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 51
  • Position: #24 / 49
  • Number of attempts: 1
Remove adjacent duplicates - 437 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 40
  • Position: #91 / 116
  • Number of attempts: 1
Rearrange array to single level - 1267 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: #173 / 202
  • Number of attempts: 1
Copy punctuation - 483 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 / 119
  • Number of attempts: 1
Deleting text - 245 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 39
  • Position: #10 / 78
  • 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 - 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 - 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 - 142 entries

There is one special character per line

  • Best score: 30
  • Best player score: 31
  • Position: #13 / 38
  • 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 - 25 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 - 142 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 - 32 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 - 245 entries

Delete everything except some specific numbers.

Copy punctuation - 483 entries

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

Rearrange array to single level - 1267 entries

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

Remove adjacent duplicates - 437 entries

Try to find a way to remove adjacent duplicate letters.

Word completion - 178 entries

Try to complete these options within 20 keystrokes.

Change to ascending order - 8 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.

maharba6
Github:

entered into 18 challenges

contributed 18 challenges