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 - 2077 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 / 462
  • Number of attempts: 2
Remove line numbers - 777 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 / 204
  • Number of attempts: 3
Surround the 'z' character with brackets, quotes, and print as formatted string. - 575 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #198 / 323
  • Number of attempts: 2
Paste a column after a column - 2661 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 / 575
  • Number of attempts: 7
Reformat symbols in list - 1648 entries

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

  • Best score: 24
  • Best player score: 35
  • Position: #233 / 354
  • 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 - 1472 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #286 / 480
  • 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 - 1834 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #324 / 570
  • 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 - 1678 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #245 / 563
  • 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 - 2522 entries

Simple number generation

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

Speak in tongues

  • Best score: 17
  • Best player score: 19
  • Position: #155 / 274
  • 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 - 1947 entries

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

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

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

  • Best score: 9
  • Best player score: 10
  • Position: #480 / 1117
  • Number of attempts: 5
Vice versa - 7974 entries

Little role switching.

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

entered into 18 challenges

contributed 0 challenges