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

Prime Numbers - 326 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 64
  • Position: #60 / 96
  • Number of attempts: 4
Search and Replace 0 - 4654 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 14
  • Position: #846 / 1542
  • Number of attempts: 1
Cartesian product - 210 entries

{1,2,3,4,5} X {1,2,3,4,5}

  • Best score: 24
  • Best player score: 37
  • Position: #65 / 90
  • Number of attempts: 3
Generate Fibonacci Numbers - 251 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 23
  • Position: #56 / 94
  • Number of attempts: 2
Generate English Alphabets - 438 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 25
  • Position: #74 / 194
  • Number of attempts: 1
Overall Vimgolf Rank - 142 entries

Suppose you are trying to figure out what your overall rank is at Vimgolf(the sum of all the ranks you got), and as a Vim ninja you decided to use Vim to do the job. Your solution should work for every Vimgolf profile page(The actual input file for this challenge is my Vimgolf profile page). So, direct answer insertion is considered cheating.

  • Best score: 23
  • Best player score: 44
  • Position: #45 / 56
  • Number of attempts: 1
Insert a Markdown link - 411 entries

Put a link in a markdown document, using the after-the-paragraph format.

  • Best score: 22
  • Best player score: 27
  • Position: #97 / 139
  • Number of attempts: 1
CSV to JSON - 144 entries

A search for shortest vimissh way to convert CSV to JSON.

  • Best score: 56
  • Best player score: 156
  • Position: #49 / 60
  • Number of attempts: 1
Assignment Alignment - 770 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 39
  • Position: #194 / 210
  • Number of attempts: 1
Shebangs for all - 1771 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 15
  • Position: #238 / 467
  • Number of attempts: 1
A Simple One - 924 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #67 / 612
  • Number of attempts: 1
Table Reshuffle - 349 entries

Fix the column order in this table... also append the new 'username' column.

  • Best score: 22
  • Best player score: 62
  • Position: #123 / 127
  • Number of attempts: 1
Reverse Simple Deletion - 759 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 15
  • Position: #387 / 429
  • Number of attempts: 1
Increment, increment, increment.... - 568 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #64 / 371
  • Number of attempts: 1
The Cake is a Lie - 1203 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #17 / 488
  • Number of attempts: 1
Reverse characters in a line - 645 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 17
  • Position: #148 / 236
  • Number of attempts: 1
Reformat most common surnames - 586 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 50
  • Position: #168 / 186
  • Number of attempts: 1
Get rid of html tags - 341 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 15
  • Best player score: 17
  • Position: #31 / 207
  • Number of attempts: 1
Przemysław Pawełczyk
Twitter:

entered into 18 challenges

contributed 0 challenges