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

Paste a column after a column - 2102 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #3 / 450
  • Number of attempts: 12
HS exam question - 1411 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 69
  • Position: #172 / 381
  • Number of attempts: 1
Changing around text with citations - 300 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 37
  • Position: #36 / 84
  • Number of attempts: 2
Poorly indented Python comments - 1133 entries

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

  • Best score: 15
  • Best player score: 27
  • Position: #92 / 196
  • Number of attempts: 1
delete swap - 1443 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #197 / 458
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1152 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: #167 / 242
  • Number of attempts: 2
Fix the shell script! - 2048 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 29
  • Position: #171 / 491
  • Number of attempts: 3
Put a newline after every 10 lines in vim - 1543 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #219 / 515
  • Number of attempts: 3
Wikitext headings to markdown - 939 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #34 / 196
  • Number of attempts: 4
Plotting some variables in python - 1531 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: 46
  • Position: #163 / 326
  • Number of attempts: 1
Migrated to Postgres! - 296 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 27
  • Position: #32 / 117
  • Number of attempts: 1
Modernise code - 1308 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 41
  • Position: #127 / 302
  • Number of attempts: 3
Put a cross in the square - 201 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 23
  • Position: #60 / 83
  • Number of attempts: 4
swap number pairs - 1986 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 38
  • Position: #297 / 367
  • Number of attempts: 1
HS Final exam vimgolf - 852 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 35
  • Position: #162 / 224
  • Number of attempts: 2
Rural Post - 4342 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #617 / 1062
  • Number of attempts: 1
Multiline to Single Line - 594 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #110 / 266
  • Number of attempts: 3
Swap values - 4534 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 17
  • Position: #1104 / 1254
  • Number of attempts: 1
One number per line - 18611 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2121 / 3840
  • Number of attempts: 4
Add semicolons - 10780 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Position: #2328 / 3041
  • Number of attempts: 1
Com(m)a Trouble - 3634 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 18
  • Position: #579 / 814
  • Number of attempts: 1
Box it - 7818 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 28
  • Position: #1270 / 1861
  • Number of attempts: 1
From argument to object - 1469 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 22
  • Position: #384 / 449
  • Number of attempts: 1
Search and Replace 0 - 4785 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #1092 / 1584
  • Number of attempts: 3
Just the middle - 11345 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2551 / 4159
  • Number of attempts: 1
Make HTML List - 1039 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 51
  • Position: #222 / 271
  • Number of attempts: 1
Missing Library and a Typo - 846 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 15
  • Best player score: 21
  • Position: #158 / 208
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10614 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2242 / 3661
  • Number of attempts: 3
Simple text editing with Vim - 12203 entries

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

  • Best score: 13
  • Best player score: 22
  • Position: #2859 / 3559
  • Number of attempts: 1
usermod
Twitter:

entered into 29 challenges

contributed 0 challenges