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 - 1962 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: 6
  • Position: #58 / 431
  • Number of attempts: 6
EDN reformat - 1158 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 18
  • Position: #52 / 164
  • Number of attempts: 14
Tic-Tac-Toe Grid Transformation - 396 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: 153
  • Position: #59 / 83
  • Number of attempts: 2
Insert column data on Confluence-style table - 458 entries

Add ip addresses into new "IP" column based on the last digits from the "Server" column

  • Best score: 33
  • Best player score: 47
  • Position: #55 / 109
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 555 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #173 / 310
  • Number of attempts: 2
Paste a column after a column - 2537 entries

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

  • Best score: 14
  • Best player score: 20
  • Position: #306 / 553
  • Number of attempts: 1
Filter number combinations that don't add to 11 - 408 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 27
  • Position: #36 / 117
  • Number of attempts: 5
Tabbed Table to Python Array - 734 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 50
  • Best player score: 61
  • Position: #98 / 179
  • Number of attempts: 1
HS exam question - 1589 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 70
  • Position: #206 / 417
  • Number of attempts: 1
Substraction (bis) - 603 entries

Solve the equations (adapted from the original @Caek_'s challenge).

  • Best score: 21
  • Best player score: 25
  • Position: #39 / 113
  • Number of attempts: 4
Changing around text with citations - 329 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 40
  • Position: #55 / 93
  • Number of attempts: 3
Many duplicates - 1445 entries

Quick and easy

  • Best score: 7
  • Best player score: 12
  • Position: #419 / 468
  • Number of attempts: 1
delete swap - 1786 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #306 / 555
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1253 entries

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

  • Best score: 29
  • Best player score: 49
  • Position: #177 / 271
  • Number of attempts: 1
Fix the shell script! - 2544 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 28
  • Position: #161 / 589
  • Number of attempts: 9
Put a newline after every 10 lines in vim - 1658 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #196 / 557
  • Number of attempts: 5
Wikitext headings to markdown - 987 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #47 / 209
  • Number of attempts: 3
Arey125
Github:

entered into 17 challenges

contributed 0 challenges