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

Tic-Tac-Toe Grid Transformation - 327 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 56
  • Best player score: 145
  • Position: #51 / 79
  • Number of attempts: 2
Find fix point of cos - 1199 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 19
  • Position: #273 / 363
  • Number of attempts: 6
delete swap - 1639 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #303 / 512
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1223 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 38
  • Position: #100 / 258
  • Number of attempts: 9
Learn to ask for :help - 572 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 32
  • Position: #76 / 128
  • Number of attempts: 4
Migrated to Postgres! - 321 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 30
  • Position: #87 / 125
  • Number of attempts: 3
CSV to MD format - 404 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 70
  • Position: #44 / 93
  • Number of attempts: 4
Python dataclasses - 1120 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 31
  • Position: #200 / 280
  • Number of attempts: 5
swap number pairs - 2022 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 27
  • Position: #212 / 373
  • Number of attempts: 5
quotes inside quotes - 3128 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 34
  • Position: #1063 / 1073
  • Number of attempts: 2
Minimalist Limerick - 519 entries

Reproduce this lovely poem.

  • Best score: 30
  • Best player score: 40
  • Position: #143 / 173
  • Number of attempts: 2
Before there was Farmville... - 98 entries

There was old MacDonald. For my toddler. The first Vim sing-a-long?

  • Best score: 156
  • Best player score: 227
  • Position: #29 / 48
  • Number of attempts: 1
Hugo O Rivera
Github:

entered into 12 challenges

contributed 0 challenges