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

Find fix point of cos - 1199 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 16
  • Position: #234 / 363
  • Number of attempts: 1
Insert column data on Confluence-style table - 441 entries

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

  • Best score: 33
  • Best player score: 50
  • Position: #62 / 104
  • Number of attempts: 1
Paste a column after a column - 2407 entries

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

  • Best score: 14
  • Best player score: 21
  • Position: #305 / 521
  • Number of attempts: 2
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: 29
  • Position: #82 / 112
  • Number of attempts: 2
Tabbed Table to Python Array - 652 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: 59
  • Position: #68 / 171
  • Number of attempts: 1
HS exam question - 1522 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 63
  • Position: #130 / 403
  • Number of attempts: 2
Reformat symbols in list - 1506 entries

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

  • Best score: 24
  • Best player score: 54
  • Position: #307 / 333
  • Number of attempts: 1
Substraction (bis) - 582 entries

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

  • Best score: 21
  • Best player score: 29
  • Position: #52 / 110
  • Number of attempts: 1
Changing around text with citations - 324 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 40
  • Position: #52 / 90
  • Number of attempts: 1
Poorly indented Python comments - 1274 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 46
  • Position: #156 / 212
  • Number of attempts: 1
Many duplicates - 1333 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #325 / 436
  • Number of attempts: 1
2 quick changes and a numbered list - 614 entries

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

  • Best score: 37
  • Best player score: 47
  • Position: #84 / 147
  • Number of attempts: 1
delete swap - 1639 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #95 / 512
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1223 entries

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

  • Best score: 29
  • Best player score: 61
  • Position: #219 / 258
  • Number of attempts: 1
Fix the shell script! - 2421 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 38
  • Position: #362 / 562
  • Number of attempts: 1
Visual block training - 1047 entries

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

  • Best score: 17
  • Best player score: 44
  • Position: #124 / 195
  • Number of attempts: 1
Java to JavaScript - 267 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 78
  • Position: #31 / 72
  • Number of attempts: 3
Wikitext headings to markdown - 985 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 57
  • Position: #180 / 207
  • Number of attempts: 2
ohwell
Twitter:

entered into 18 challenges

contributed 0 challenges