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 - 1016 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: #193 / 296
  • Number of attempts: 1
Insert column data on Confluence-style table - 415 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: #58 / 94
  • Number of attempts: 1
Paste a column after a column - 2114 entries

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

  • Best score: 14
  • Best player score: 21
  • Position: #266 / 452
  • Number of attempts: 2
Filter number combinations that don't add to 11 - 346 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: #77 / 103
  • Number of attempts: 2
Tabbed Table to Python Array - 604 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: #63 / 158
  • Number of attempts: 1
HS exam question - 1419 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 63
  • Position: #125 / 381
  • Number of attempts: 2
Reformat symbols in list - 1411 entries

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

  • Best score: 24
  • Best player score: 54
  • Position: #285 / 310
  • Number of attempts: 1
Substraction (bis) - 558 entries

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

  • Best score: 21
  • Best player score: 29
  • Position: #50 / 104
  • Number of attempts: 1
Changing around text with citations - 302 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 40
  • Position: #49 / 85
  • Number of attempts: 1
Poorly indented Python comments - 1145 entries

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

  • Best score: 15
  • Best player score: 46
  • Position: #146 / 197
  • Number of attempts: 1
Many duplicates - 1189 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #289 / 387
  • Number of attempts: 1
2 quick changes and a numbered list - 573 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: #79 / 138
  • Number of attempts: 1
delete swap - 1454 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #95 / 461
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1155 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: #208 / 243
  • Number of attempts: 1
Fix the shell script! - 2048 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 38
  • Position: #312 / 491
  • Number of attempts: 1
Visual block training - 949 entries

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

  • Best score: 17
  • Best player score: 44
  • Position: #110 / 174
  • Number of attempts: 1
Java to JavaScript - 253 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 78
  • Position: #29 / 65
  • Number of attempts: 3
Wikitext headings to markdown - 946 entries

Convert the wikitext headings to markdown.

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

entered into 18 challenges

contributed 0 challenges