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 - 1676 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 / 369
  • Number of attempts: 6
EDN reformat - 1085 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #50 / 151
  • Number of attempts: 14
Tic-Tac-Toe Grid Transformation - 326 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: #56 / 79
  • Number of attempts: 2
Insert column data on Confluence-style table - 437 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: #52 / 102
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 497 entries

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

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

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

  • Best score: 14
  • Best player score: 20
  • Position: #284 / 514
  • Number of attempts: 1
Filter number combinations that don't add to 11 - 379 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 / 112
  • Number of attempts: 5
Tabbed Table to Python Array - 646 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: #91 / 168
  • Number of attempts: 1
HS exam question - 1517 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 70
  • Position: #198 / 401
  • Number of attempts: 1
Substraction (bis) - 580 entries

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

  • Best score: 21
  • Best player score: 25
  • Position: #37 / 109
  • Number of attempts: 4
Changing around text with citations - 323 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 40
  • Position: #54 / 89
  • Number of attempts: 3
Many duplicates - 1304 entries

Quick and easy

  • Best score: 6
  • Best player score: 12
  • Position: #385 / 427
  • Number of attempts: 1
delete swap - 1606 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #306 / 502
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1214 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: #170 / 254
  • Number of attempts: 1
Fix the shell script! - 2399 entries

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 10
  • Best player score: 11
  • Position: #194 / 542
  • Number of attempts: 5
Wikitext headings to markdown - 984 entries

Convert the wikitext headings to markdown.

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

entered into 17 challenges

contributed 0 challenges