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 - 246 entries

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

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

Try to complete these options within 20 keystrokes.

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

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 19
  • Position: #24 / 287
  • Number of attempts: 8
Paste a column after a column - 2610 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 / 566
  • Number of attempts: 20
delete swap - 1809 entries

delete all swap

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

Simple challenge to extract fields from a Python class

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

Simple challenge for frequent action while programming.

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

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #819 / 1886
  • Number of attempts: 9
Tables, Functions, Sprocs - 141 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 / 49
  • Number of attempts: 4
Just the middle - 11509 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3228 / 4218
  • Number of attempts: 1
create arrows in a list - 128 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 10
  • Position: #65 / 77
  • Number of attempts: 3
Add to end of each line... kinda - 338 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 / 175
  • Number of attempts: 5
Sorting a glossary - 132 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 / 82
  • Number of attempts: 1
Sort files from hosts - 195 entries

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

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

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #311 / 429
  • Number of attempts: 10
One to Ten - 2240 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 / 681
  • Number of attempts: 4
Separating firstname & lastname - 154 entries

Seperate named with equal tabs.

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

Help Joe clean up what Steve has cobbled.

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

A HAPPY NEW YEAR 2014 !

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

Transform the series of words into a list.

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

End up with the name of the game.

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

Oops, I spelled that wrong.

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

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Position: #199 / 669
  • Number of attempts: 5
Remove noise from HTTP log - 724 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 / 275
  • Number of attempts: 4
Remove semicolons after expressions - 663 entries

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

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

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #673 / 1750
  • Number of attempts: 6
Sort entries based on date - 405 entries

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

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

Start with a, get up to z.

  • Best score: 19
  • Best player score: 23
  • Position: #27 / 209
  • Number of attempts: 8
Numbering a List - 1939 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #90 / 655
  • Number of attempts: 4
Ruby 1.9 hashes - 1260 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: #333 / 410
  • Number of attempts: 2
Shebangs for all - 2049 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 / 523
  • Number of attempts: 11
Flodder-challenge - 1369 entries

Replace the text the most efficient and win!

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

entered into 32 challenges

contributed 0 challenges