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

Put a newline after every 10 lines in vim - 1163 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 13
  • Position: #164 / 401
  • Number of attempts: 1
hello-world-vimgolf - 1762 entries

Simple number generation

  • Best score: 10
  • Best player score: 14
  • Position: #375 / 507
  • Number of attempts: 1
Fill in the chess board - 665 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: #78 / 140
  • Number of attempts: 3
Learn to ask for :help - 447 entries

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

  • Best score: 19
  • Best player score: 34
  • Position: #63 / 102
  • Number of attempts: 2
Plotting some variables in python - 1269 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: #175 / 270
  • Number of attempts: 3
Transpose a python matrix - 629 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 57
  • Position: #67 / 112
  • Number of attempts: 2
Lowercase first characters - 387 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: #127 / 142
  • Number of attempts: 1
Make list of numbers from 1 to 30 more compact, but more confusing - 81 entries

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

  • Best score: 75
  • Best player score: 162
  • Position: #27 / 33
  • Number of attempts: 2
Inverting Lines - 1447 entries

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

  • Best score: 10
  • Best player score: 14
  • Position: #284 / 396
  • Number of attempts: 1
C to python code snippet - 68 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: #20 / 22
  • Number of attempts: 1
Rural Post - 4160 entries

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

  • Best score: 9
  • Best player score: 14
  • Position: #614 / 1030
  • Number of attempts: 3
Multiline to Single Line - 552 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #71 / 248
  • Number of attempts: 1
From a Thunderlink to a Markdown link - 711 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: #70 / 158
  • Number of attempts: 2
Yo To Hello - 1066 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 11
  • Position: #392 / 489
  • Number of attempts: 1
Simple, Practical, and Common - 33029 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: #6330 / 7290
  • Number of attempts: 1
prepend * to every non-blank line - 6061 entries

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

  • Best score: 10
  • Best player score: 16
  • Position: #1007 / 1481
  • Number of attempts: 2
Quote modules - 1023 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 28
  • Position: #178 / 262
  • Number of attempts: 1
V to the i - 4647 entries

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

  • Best score: 7
  • Best player score: 9
  • Position: #1709 / 1861
  • Number of attempts: 2
Applying same text modification in several lines - 2768 entries

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

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

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

  • Best score: 5
  • Best player score: 17
  • Position: #356 / 363
  • Number of attempts: 1
Copy three lines - 2819 entries

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

  • Best score: 13
  • Best player score: 20
  • Position: #417 / 629
  • Number of attempts: 2
Search and Replace 0 - 4722 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #677 / 1562
  • Number of attempts: 4
Python Hello World! Reformatting - 910 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: #236 / 355
  • Number of attempts: 1
Basic renumbering - 5477 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 26
  • Position: #1154 / 1238
  • 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 - 1120 entries

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

  • Best score: 14
  • Best player score: 24
  • Position: #204 / 255
  • Number of attempts: 3
Overall Vimgolf Rank - 161 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: #42 / 57
  • Number of attempts: 1
Reformat most common surnames - 599 entries

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

  • Best score: 23
  • Best player score: 49
  • Position: #169 / 188
  • Number of attempts: 1
Get rid of html tags - 348 entries

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

  • Best score: 15
  • Best player score: 17
  • Position: #113 / 209
  • Number of attempts: 2
Change the content of a string - 1393 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 27
  • Position: #450 / 531
  • Number of attempts: 1
Sort and add attributes - 1226 entries

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

  • Best score: 33
  • Best player score: 39
  • Position: #450 / 495
  • Number of attempts: 2
Simple text editing with Vim - 11753 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1873 / 3447
  • Number of attempts: 4
Sergio
Twitter:

entered into 32 challenges

contributed 0 challenges