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 - 648 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: #38 / 181
  • Number of attempts: 3
Insert column data on Confluence-style table - 264 entries

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

  • Best score: 33
  • Best player score: 37
  • Position: #19 / 67
  • Number of attempts: 4
Surround the 'z' character with brackets, quotes, and print as formatted string. - 335 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #51 / 176
  • Number of attempts: 2
Easier Align - 188 entries

Align the columns of a markdown table

  • Best score: 57
  • Best player score: 125
  • Position: #17 / 67
  • Number of attempts: 5
Paste a column after a column - 1676 entries

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

  • Best score: 14
  • Best player score: 19
  • Position: #183 / 366
  • Number of attempts: 4
Tabbed Table to Python Array - 486 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: 62
  • Position: #74 / 136
  • Number of attempts: 6
HS exam question - 1275 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 49
  • Position: #43 / 347
  • Number of attempts: 8
Reformat symbols in list - 1210 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #44 / 274
  • Number of attempts: 6
Changing around text with citations - 243 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 41
  • Position: #49 / 71
  • Number of attempts: 2
Many duplicates - 1048 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #223 / 341
  • Number of attempts: 1
delete swap - 1268 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #260 / 403
  • Number of attempts: 5
Generate a very basic Python constructor (fixed) - 1008 entries

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

  • Best score: 29
  • Best player score: 50
  • Position: #152 / 221
  • Number of attempts: 1
Fix the shell script! - 1852 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 28
  • Position: #133 / 450
  • Number of attempts: 5
Visual block training - 842 entries

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

  • Best score: 17
  • Best player score: 43
  • Position: #95 / 155
  • Number of attempts: 1
samuel erlands
Twitter2:

entered into 14 challenges

contributed 0 challenges