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 - 2098 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: #247 / 467
  • Number of attempts: 2
Remove line numbers - 779 entries

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

  • Best score: 8
  • Best player score: 14
  • Position: #113 / 206
  • Number of attempts: 3
Surround the 'z' character with brackets, quotes, and print as formatted string. - 580 entries

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

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

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

  • Best score: 14
  • Best player score: 15
  • Position: #122 / 576
  • Number of attempts: 7
Reformat symbols in list - 1649 entries

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

  • Best score: 24
  • Best player score: 35
  • Position: #233 / 355
  • Number of attempts: 3
Changing around text with citations - 361 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 30
  • Position: #33 / 95
  • Number of attempts: 7
Many duplicates - 1481 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #286 / 481
  • Number of attempts: 1
2 quick changes and a numbered list - 660 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: #71 / 156
  • Number of attempts: 3
delete swap - 1878 entries

delete all swap

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

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

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

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

  • Best score: 10
  • Best player score: 12
  • Position: #246 / 566
  • Number of attempts: 4
Wikitext headings to markdown - 1029 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 22
  • Position: #95 / 213
  • Number of attempts: 3
hello-world-vimgolf - 2531 entries

Simple number generation

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

Speak in tongues

  • Best score: 17
  • Best player score: 19
  • Position: #155 / 275
  • Number of attempts: 2
Fill in the chess board - 979 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: #139 / 186
  • Number of attempts: 3
Inverting Lines - 1954 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #356 / 523
  • Number of attempts: 2
Rural Post - 4593 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #482 / 1120
  • Number of attempts: 5
Vice versa - 7997 entries

Little role switching.

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

entered into 18 challenges

contributed 0 challenges