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

Quote modules - 660 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 10
Count both ways - 918 entries

Right AND down.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 5
Hogwarts Email Sorting - 559 entries

Given a list of emails, get the students full name and their associated house.

  • Best score: 20
  • Best player score: 20
  • Number of attempts: 8
Words in parens - 12067 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 3
Simple, Practical, and Common - 30304 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: 22
  • Number of attempts: 12
Reformat/Refactor a Golfer Class - 5690 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 32
  • Number of attempts: 6
Get mail address from outlook format - 368 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 3
Alphabet soup - 156 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 26
  • Number of attempts: 4
Data reformat - 102 entries

Reformat this copy-paste data! #csv

  • Best score: 38
  • Best player score: 43
  • Number of attempts: 3
I forgot quotes - 14479 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Number of attempts: 3
Switch function arguments - 1888 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
Quote modules (ver.2) - 112 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 23
  • Number of attempts: 3
Simple text editing with Vim - 11053 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 6
Triangle of arrows - 72 entries

I made this by accident when working on another challenge. How would you go about making this?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 3
Add semicolons - 8166 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 1
Bad Copy Syntax - 1623 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 4
Capitalize the Names - 120 entries

I want to capitalize the names in quotes, but just the people's names, not the file names.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 4
Add text at some column - 112 entries

Complete golang struct statement.

  • Best score: 31
  • Best player score: 31
  • Number of attempts: 1
html paragraph to table - 550 entries

reformat html paragraph to table

  • Best score: 48
  • Best player score: 59
  • Number of attempts: 4
From a Thunderlink to a Markdown link - 291 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
  • Number of attempts: 2
Make Fancy Header - 929 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 6
Box it - 6288 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Number of attempts: 5
Saving the hashes(#) - 1876 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 20
  • Number of attempts: 7
Replace pattern with 1, 2, 3, ... on each line - 399 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 4
switch variable - 4663 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
Let's play some Ivmgolf - 975 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 5
Applying same text modification in several lines - 2447 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 3
The Quick Brown Fox Jumps Over The Lazy Vim - 339 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
Aliases for cd - 548 entries

Create these beautiful aliases with as few strokes as possible. Are you up for the challenge?

  • Best score: 30
  • Best player score: 30
  • Number of attempts: 18
Generate English Alphabets - 425 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 23
  • Number of attempts: 2
xrandr outputs and dashes - 228 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
Reconstruct the actual output from my unit test tool report - 95 entries

When a test fails, my unit test tool reports differences between the actual output and the expected output as follow: - line in the expected output but missing in the actual output are prefixed with a dash - unexpected lines in the actual output are prefixed with a plus sign - comments added by the unit test tool are prefixed with a question mark - common lines are showed `as-is` (well, almost;) From that "diff" format, I would like to reconstruct the actual output.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 3
Refactor typescript arrow function type - 213 entries

Make arrow function type less verbose and easier to read

  • Best score: 20
  • Best player score: 20
  • Number of attempts: 13
V to the i - 4374 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Yo To Hello - 387 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
Do you demand a shrubbery? - 1042 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 32
  • Number of attempts: 1
Vertical Limit - 2242 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 25
  • Number of attempts: 4
prepend * to every non-blank line - 3295 entries

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

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 4
ninja substitution - 1017 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 9
Jonáš Šerých
Twitter:

Skautský vedoucí, student http://t.co/wgx1KvUJT7

entered into 39 challenges

contributed 0 challenges