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

Filename Flip - 196 entries

Rearrange the MP3 filenames so that the identifier comes before the name.

  • Best score: 15
  • Best player score: 19
  • Position: #29 / 70
  • Number of attempts: 1
Change class fields from snake case to camel case - 336 entries

Change the class fields in this Scala class from snake case to camel case

  • Best score: 13
  • Best player score: 13
  • Position: #49 / 127
  • Number of attempts: 11
Word completion - 329 entries

Try to complete these options within 20 keystrokes.

  • Best score: 20
  • Best player score: 20
  • Position: #11 / 87
  • Number of attempts: 8
New teacher - 1534 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 19
  • Position: #24 / 322
  • Number of attempts: 8
Paste a column after a column - 2672 entries

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

  • Best score: 7
  • Best player score: 14
  • Position: #111 / 580
  • Number of attempts: 20
delete swap - 1918 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #386 / 583
  • Number of attempts: 4
Python dataclasses - 1277 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #84 / 325
  • Number of attempts: 9
Making 3 line function a one liner. - 349 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #184 / 215
  • Number of attempts: 1
Box it - 8004 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #821 / 1902
  • Number of attempts: 9
Tables, Functions, Sprocs - 152 entries

In order to load some scripts into my database in the correct order I need to load tables first (t_), then functions (fn_), then stored procedures (sp_). The order of the t_ lines and the order of the sp_ lines should also match. Reorder the lines so they will load correctly.

  • Best score: 10
  • Best player score: 10
  • Position: #23 / 53
  • Number of attempts: 4
Just the middle - 11636 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3240 / 4262
  • Number of attempts: 1
create arrows in a list - 146 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 10
  • Position: #65 / 81
  • Number of attempts: 3
Add to end of each line... kinda - 352 entries

Visual-block mode can be used to add something to the end of each line, even if they are of differing lengths. However, what if it's not quite at the end?

  • Best score: 12
  • Best player score: 12
  • Position: #113 / 182
  • Number of attempts: 5
Sorting a glossary - 138 entries

Sort a glossary. Glossary head contains a header phrase ending with ':' and glossary body has multi line text indented with a tab.

  • Best score: 6
  • Best player score: 6
  • Position: #75 / 85
  • Number of attempts: 1
Sort files from hosts - 210 entries

Resume files by host. I hope you enjoy with this challenge

  • Best score: 15
  • Best player score: 15
  • Position: #26 / 80
  • Number of attempts: 7
comments galore - 1101 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #311 / 433
  • Number of attempts: 10
One to Ten - 2261 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 5
  • Best player score: 12
  • Position: #374 / 690
  • Number of attempts: 4
Separating firstname & lastname - 183 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 19
  • Position: #10 / 63
  • Number of attempts: 16
Mess in revision history - 1238 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 17
  • Position: #71 / 260
  • Number of attempts: 17
A HAPPY NEW YEAR 2014 ! - 10757 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1621 / 3717
  • Number of attempts: 4
NATO phonetic alphabet - 555 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 19
  • Position: #52 / 202
  • Number of attempts: 9
The name of the game - 707 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #285 / 374
  • Number of attempts: 7
Let's play some Ivmgolf - 1167 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 7
  • Position: #146 / 462
  • Number of attempts: 4
Switch function arguments - 2235 entries

How to switch two arguments of a function.

  • Best score: 7
  • Best player score: 11
  • Position: #200 / 687
  • Number of attempts: 5
Remove noise from HTTP log - 760 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 15
  • Position: #148 / 282
  • Number of attempts: 5
Remove semicolons after expressions - 690 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 6
  • Position: #139 / 272
  • Number of attempts: 9
switch variable - 5136 entries

how fast can you switch two variable ?

  • Best score: 9
  • Best player score: 11
  • Position: #674 / 1767
  • Number of attempts: 6
Sort entries based on date - 432 entries

Sort some entries in a Ledger-file based on date.

  • Best score: 11
  • Best player score: 11
  • Position: #47 / 121
  • Number of attempts: 13
Generate English Alphabets - 540 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 23
  • Position: #29 / 216
  • Number of attempts: 8
Numbering a List - 1970 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #90 / 662
  • Number of attempts: 4
Ruby 1.9 hashes - 1315 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 17
  • Position: #341 / 421
  • Number of attempts: 2
Shebangs for all - 2105 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 11
  • Position: #77 / 534
  • Number of attempts: 11
Flodder-challenge - 1527 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 27
  • Position: #40 / 384
  • Number of attempts: 13

Contributed Challenges

Filename Flip - 196 entries

Rearrange the MP3 filenames so that the identifier comes before the name.

Chiaso
Github:

entered into 33 challenges

contributed 1 challenges