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

Rearrange array to single level - 41 entries

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

  • Best score: 16
  • Best player score: 43
  • Position: #14 / 14
  • Number of attempts: 1
Copy punctuation - 116 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: #13 / 30
  • Number of attempts: 1
Deleting text - 116 entries

Delete everything except some specific numbers.

  • Best score: 28
  • Best player score: 39
  • Position: #6 / 40
  • Number of attempts: 1
Case matching substitution - 22 entries

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

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

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

  • Best score: 56
  • Best player score: 118
  • Position: #8 / 8
  • Number of attempts: 1
Hex to binary - 61 entries

Convert hexadecimal numbers into binary format.

  • Best score: 30
  • Best player score: 39
  • Position: #9 / 15
  • Number of attempts: 1
Count words - 36 entries

Merge duplicates and count each word.

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

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

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

Reverse only the even lines without altering the odd lines.

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

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

  • Best score: 17
  • Best player score: 180
  • Position: #16 / 17
  • Number of attempts: 1
Find anomalies - 103 entries

There is one special character per line

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

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

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

Translate Morse code to Text

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

Contributed Challenges

Morse - 102 entries

Translate Morse code to Text

Coordinate extraction - 47 entries

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

String decompression - 16 entries

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

Find anomalies - 103 entries

There is one special character per line

Format a long line - 40 entries

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

Reverse even lines - 24 entries

Reverse only the even lines without altering the odd lines.

Count words - 36 entries

Merge duplicates and count each word.

Hex to binary - 61 entries

Convert hexadecimal numbers into binary format.

Define Gray code states - 20 entries

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

Case matching substitution - 22 entries

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

Deleting text - 116 entries

Delete everything except some specific numbers.

Copy punctuation - 116 entries

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

Rearrange array to single level - 41 entries

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

maharba6
Github:

entered into 13 challenges

contributed 13 challenges