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

Fill in the chess board - 191 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 37
  • Position: #25 / 43
  • Number of attempts: 3
Learn to ask for :help - 181 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 34
  • Position: #30 / 43
  • Number of attempts: 2
Plotting some variables in python - 569 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 55
  • Position: #65 / 115
  • Number of attempts: 3
Transpose a python matrix - 323 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 57
  • Position: #39 / 63
  • Number of attempts: 2
Lowercase first characters - 186 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 57
  • Position: #66 / 71
  • Number of attempts: 1
Make list of numbers from 1 to 30 more compact, but more confusing - 61 entries

Change the naming logic of numbers to end up with less lines.

  • Best score: 77
  • Best player score: 162
  • Position: #20 / 22
  • Number of attempts: 2
Inverting Lines - 969 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 14
  • Position: #190 / 265
  • Number of attempts: 1
C to python code snippet - 44 entries

C code can be easily translated into Python code. However, the difference in syntax can make this process tedious and time-consuming. Can Vim help you here?

  • Best score: 48
  • Best player score: 102
  • Position: #13 / 15
  • Number of attempts: 1
Rural Post - 3797 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 14
  • Position: #556 / 938
  • Number of attempts: 3
Multiline to Single Line - 374 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #71 / 177
  • Number of attempts: 1
From a Thunderlink to a Markdown link - 642 entries

ThunderLinks are durable hyperlinks to specific email messages generated from Thunderbird in HTML format. Leverage the power of vim to make them suitable for a markdown-formatted file.

  • Best score: 18
  • Best player score: 20
  • Position: #62 / 143
  • Number of attempts: 2
Yo To Hello - 980 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 11
  • Position: #362 / 452
  • Number of attempts: 1
Simple, Practical, and Common - 32765 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 34
  • Position: #6288 / 7241
  • Number of attempts: 1
prepend * to every non-blank line - 5829 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 16
  • Position: #971 / 1434
  • Number of attempts: 2
Quote modules - 985 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 28
  • Position: #169 / 252
  • Number of attempts: 1
V to the i - 4615 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 9
  • Position: #1697 / 1846
  • Number of attempts: 2
Applying same text modification in several lines - 2710 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 16
  • Position: #577 / 806
  • Number of attempts: 2
Wrap the text of an email message to 79 characters - 545 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 17
  • Position: #334 / 341
  • Number of attempts: 1
Copy three lines - 2766 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 20
  • Position: #410 / 620
  • Number of attempts: 2
Search and Replace 0 - 4583 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #677 / 1518
  • Number of attempts: 4
Python Hello World! Reformatting - 881 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 44
  • Position: #230 / 340
  • Number of attempts: 1
Basic renumbering - 5408 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 26
  • Position: #1137 / 1221
  • Number of attempts: 2
mp3 - Cutlist - 28 entries

An audio CD was accidentally ripped into one single mp3 file. A dummy cue-file now needs to be filled out with the correct values to get single mp3 files.

  • Best score: 67
  • Best player score: 139
  • Position: #7 / 11
  • Number of attempts: 2
Reorder the groups - 1088 entries

Change the order so that the groups of fruit come before the vegetables.

  • Best score: 14
  • Best player score: 24
  • Position: #197 / 248
  • Number of attempts: 3
Overall Vimgolf Rank - 138 entries

Suppose you are trying to figure out what your overall rank is at Vimgolf(the sum of all the ranks you got), and as a Vim ninja you decided to use Vim to do the job. Your solution should work for every Vimgolf profile page(The actual input file for this challenge is my Vimgolf profile page). So, direct answer insertion is considered cheating.

  • Best score: 23
  • Best player score: 42
  • Position: #41 / 54
  • Number of attempts: 1
Reformat most common surnames - 553 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 49
  • Position: #158 / 175
  • Number of attempts: 1
Get rid of html tags - 326 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 15
  • Best player score: 17
  • Position: #108 / 200
  • Number of attempts: 2
Change the content of a string - 1296 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 27
  • Position: #425 / 501
  • Number of attempts: 1
Sort and add attributes - 1133 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 39
  • Position: #421 / 464
  • Number of attempts: 2
Simple text editing with Vim - 11431 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #2430 / 3357
  • Number of attempts: 1
Sergio
Twitter:

entered into 30 challenges

contributed 0 challenges