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

Change class fields from snake case to camel case - 322 entries

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

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

Try to complete these options within 20 keystrokes.

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

Update the details of the new CS teacher.

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

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

  • Best score: 14
  • Best player score: 14
  • Position: #110 / 578
  • Number of attempts: 20
delete swap - 1912 entries

delete all swap

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

Simple challenge to extract fields from a Python class

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

Simple challenge for frequent action while programming.

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

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #821 / 1901
  • 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 - 11616 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3238 / 4255
  • 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 - 350 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 / 180
  • 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 - 1100 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #311 / 433
  • Number of attempts: 10
One to Ten - 2258 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: 12
  • Best player score: 12
  • Position: #373 / 688
  • Number of attempts: 4
Separating firstname & lastname - 182 entries

Seperate named with equal tabs.

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

Help Joe clean up what Steve has cobbled.

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

A HAPPY NEW YEAR 2014 !

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

Transform the series of words into a list.

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

End up with the name of the game.

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

Oops, I spelled that wrong.

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

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Position: #199 / 684
  • Number of attempts: 5
Remove noise from HTTP log - 758 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 / 281
  • Number of attempts: 5
Remove semicolons after expressions - 685 entries

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

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

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #673 / 1764
  • 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 - 1969 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #90 / 661
  • Number of attempts: 4
Ruby 1.9 hashes - 1312 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: #339 / 419
  • Number of attempts: 2
Shebangs for all - 2101 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 / 532
  • Number of attempts: 11
Flodder-challenge - 1500 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 27
  • Position: #40 / 378
  • Number of attempts: 13
Chiaso
Github:

entered into 32 challenges

contributed 0 challenges