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

Quicksort - 1875 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 24
  • Position: #228 / 411
  • Number of attempts: 2
Remove line numbers - 694 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 9
  • Best player score: 14
  • Position: #105 / 189
  • Number of attempts: 3
Surround the 'z' character with brackets, quotes, and print as formatted string. - 538 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #198 / 300
  • Number of attempts: 2
Paste a column after a column - 2504 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 15
  • Position: #113 / 547
  • Number of attempts: 7
Reformat symbols in list - 1606 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 35
  • Position: #226 / 344
  • Number of attempts: 3
Changing around text with citations - 327 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 30
  • Position: #31 / 92
  • Number of attempts: 7
Many duplicates - 1443 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #283 / 467
  • Number of attempts: 1
2 quick changes and a numbered list - 642 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 43
  • Position: #69 / 153
  • Number of attempts: 3
delete swap - 1768 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #324 / 548
  • Number of attempts: 1
Visual block training - 1069 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 34
  • Position: #101 / 203
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1656 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 12
  • Position: #241 / 555
  • Number of attempts: 4
Wikitext headings to markdown - 986 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 22
  • Position: #91 / 208
  • Number of attempts: 3
hello-world-vimgolf - 2490 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #318 / 705
  • Number of attempts: 2
Contribute to keyboard mashing - 890 entries

Speak in tongues

  • Best score: 17
  • Best player score: 19
  • Position: #152 / 270
  • Number of attempts: 2
Fill in the chess board - 956 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 48
  • Position: #136 / 183
  • Number of attempts: 3
Inverting Lines - 1881 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 13
  • Position: #346 / 508
  • Number of attempts: 2
Rural Post - 4462 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Position: #473 / 1093
  • Number of attempts: 5
Vice versa - 7903 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #621 / 2125
  • Number of attempts: 6
armaninux
Github:

entered into 18 challenges

contributed 0 challenges