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 - 1426 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: 15
  • Position: #101 / 422
  • Number of attempts: 7
Insert column data on Confluence-style table - 474 entries

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

  • Best score: 33
  • Best player score: 34
  • Position: #9 / 110
  • Number of attempts: 7
Surround the 'z' character with brackets, quotes, and print as formatted string. - 567 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #14 / 318
  • Number of attempts: 2
Easier Align - 406 entries

Align the columns of a markdown table

  • Best score: 51
  • Best player score: 66
  • Position: #20 / 96
  • Number of attempts: 16
Paste a column after a column - 2604 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #42 / 565
  • Number of attempts: 9
Filter number combinations that don't add to 11 - 414 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: 28
  • Position: #63 / 118
  • Number of attempts: 4
Tabbed Table to Python Array - 743 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: 51
  • Position: #13 / 180
  • Number of attempts: 12
HS exam question - 1596 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 49
  • Position: #54 / 418
  • Number of attempts: 12
Reformat symbols in list - 1633 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #41 / 351
  • Number of attempts: 10
Fizzbuzz - 586 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 44
  • Best player score: 48
  • Position: #26 / 169
  • Number of attempts: 11
Substraction (bis) - 619 entries

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

  • Best score: 21
  • Best player score: 23
  • Position: #34 / 114
  • Number of attempts: 20
Changing around text with citations - 340 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 29
  • Position: #28 / 94
  • Number of attempts: 7
Poorly indented Python comments - 1328 entries

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

  • Best score: 15
  • Best player score: 16
  • Position: #59 / 223
  • Number of attempts: 20
Many duplicates - 1459 entries

Quick and easy

  • Best score: 7
  • Best player score: 7
  • Position: #22 / 476
  • Number of attempts: 7
2 quick changes and a numbered list - 648 entries

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

  • Best score: 37
  • Best player score: 37
  • Position: #24 / 155
  • Number of attempts: 6
delete swap - 1801 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #246 / 561
  • Number of attempts: 1
Fix the shell script! - 2605 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #111 / 606
  • Number of attempts: 9
Simple text editing with Vim - 13092 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #1967 / 3765
  • Number of attempts: 8
わーお
Twitter2:

サウシー/CreepyNuts/優里/バニラズ

entered into 18 challenges

contributed 0 challenges