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

YAML to dotenv - 1226 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 52
  • Position: #235 / 262
  • Number of attempts: 1
Change to ascending order - 450 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 99
  • Position: #86 / 110
  • Number of attempts: 1
Swap columns and transform to CSV format - 386 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 27
  • Position: #126 / 143
  • Number of attempts: 2
Generate an entry for each month - 351 entries

The input file contains a URI with a month in it. Generate the URIs for all the other months up to a couple of years

  • Best score: 27
  • Best player score: 113
  • Position: #78 / 84
  • Number of attempts: 1
The Fibonacci Spacer - 148 entries

Split the words, remove punctuation and add spaces before each line following the Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89)

  • Best score: 25
  • Best player score: 86
  • Position: #38 / 41
  • Number of attempts: 1
Replace markdown sections with numbering - 284 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 108
  • Position: #59 / 72
  • Number of attempts: 1
Fix the Scala Method - 287 entries

Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.

  • Best score: 2
  • Best player score: 32
  • Position: #81 / 90
  • Number of attempts: 2
Change class fields from snake case to camel case - 276 entries

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

  • Best score: 13
  • Best player score: 35
  • Position: #99 / 103
  • Number of attempts: 2
Reorganize Pokémon - 691 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 41
  • Position: #180 / 190
  • Number of attempts: 1
Replace csv column if it's not empty - 248 entries

Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched

  • Best score: 15
  • Best player score: 21
  • Position: #73 / 83
  • Number of attempts: 1
extract struct tag in go - 142 entries

Can you extract all struct tags in the fewest keystrokes possible?

  • Best score: 29
  • Best player score: 69
  • Position: #33 / 36
  • Number of attempts: 1
CaN yOuR ViM dO ThAt? #1 - 236 entries

Tsoding's famous "Can your Vim do that?" https://youtu.be/Bafo3hhheHU?si=DfcT4sUEMTSAevnx&t=1091

  • Best score: 41
  • Best player score: 58
  • Position: #87 / 91
  • Number of attempts: 1
Append leading hyphen count to each line - 108 entries

Append the number of leading hyphens to the end of each line.

  • Best score: 23
  • Best player score: 64
  • Position: #31 / 31
  • Number of attempts: 1
Move list of uuids into a SQL query - 196 entries

Take the list of UUIDs and use them as a filter in the where statement of a SQL query

  • Best score: 57
  • Best player score: 76
  • Position: #59 / 66
  • Number of attempts: 1
Markdown Blog Editing - 434 entries

Convert the given link text in start file to a markdown link list.

  • Best score: 30
  • Best player score: 118
  • Position: #94 / 101
  • Number of attempts: 2
Fix timezone format - 318 entries

Add the missing T and Z in the datetime field. There should be a T instead of the space, and a Z at the end of the datetime. `2024-08-31 18:32:00;` -> `2024-08-31T18:32:00Z;`

  • Best score: 15
  • Best player score: 30
  • Position: #101 / 101
  • Number of attempts: 2
Search different SQL column with similar where clause - 314 entries

Replace a column in the where clause and convert all numbers from text to numeric, by replacing the leading 0 with the code 359.

  • Best score: 22
  • Best player score: 32
  • Position: #57 / 69
  • Number of attempts: 3
Remove adjacent duplicates - 646 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 23
  • Position: #76 / 162
  • Number of attempts: 2
Rearrange array to single level - 1631 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 58
  • Position: #244 / 271
  • Number of attempts: 1
Rearrange array to one line - 758 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 79
  • Position: #175 / 182
  • Number of attempts: 1
Fix the shell script! - 2651 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 46
  • Position: #485 / 616
  • Number of attempts: 1
Put a cross in the square - 235 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 23
  • Position: #67 / 92
  • Number of attempts: 1
swap number pairs - 2146 entries

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

  • Best score: 16
  • Best player score: 43
  • Position: #341 / 390
  • Number of attempts: 1
HS Final exam vimgolf - 913 entries

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

  • Best score: 21
  • Best player score: 208
  • Position: #240 / 241
  • Number of attempts: 1
Extend shell script - 138 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 79
  • Position: #42 / 48
  • Number of attempts: 1
Easy modification of ssh config - 382 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 39
  • Position: #85 / 115
  • Number of attempts: 3
Rural Post - 4572 entries

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

  • Best score: 9
  • Best player score: 12
  • Position: #551 / 1116
  • Number of attempts: 2
Satisfy the go linter - 2468 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 26
  • Position: #308 / 491
  • Number of attempts: 2
xrandr outputs and dashes - 725 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
  • Position: #153 / 226
  • Number of attempts: 3
From a Thunderlink to a Markdown link - 783 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: 53
  • Position: #173 / 174
  • Number of attempts: 1
Yo To Hello - 1152 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #405 / 534
  • Number of attempts: 1
Replace pattern with 1, 2, 3, ... on each line - 1151 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: 33
  • Position: #165 / 233
  • Number of attempts: 1
Simple, Practical, and Common - 33866 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: 31
  • Position: #5750 / 7474
  • Number of attempts: 1
Swap values - 4661 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Position: #1104 / 1282
  • Number of attempts: 2
prepend * to every non-blank line - 6366 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #853 / 1555
  • Number of attempts: 1
One number per line - 18831 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 24
  • Position: #3301 / 3889
  • Number of attempts: 1
Swap values inside brackets - 2523 entries

Easy challenge.

  • Best score: 13
  • Best player score: 31
  • Position: #554 / 587
  • Number of attempts: 1
Applying same text modification in several lines - 2915 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #631 / 863
  • Number of attempts: 1
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1790 / 3085
  • Number of attempts: 1
Bad Copy Syntax - 2055 entries

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

  • Best score: 18
  • Best player score: 38
  • Position: #494 / 536
  • Number of attempts: 2
remove lines containing the word "reader" - 3622 entries

easy stuff

  • Best score: 9
  • Best player score: 14
  • Position: #1082 / 1177
  • Number of attempts: 1
Com(m)a Trouble - 3941 entries

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

  • Best score: 12
  • Best player score: 44
  • Position: #842 / 892
  • Number of attempts: 2
Box it - 7962 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Position: #1207 / 1891
  • Number of attempts: 2
Just the middle - 11541 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3674 / 4230
  • Number of attempts: 2
Basic renumbering - 5699 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 23
  • Position: #1088 / 1273
  • Number of attempts: 2
Vice versa - 7974 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1456 / 2146
  • Number of attempts: 3
One to Ten - 2241 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: 17
  • Position: #569 / 682
  • Number of attempts: 1
Line under headers - 2072 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 43
  • Position: #467 / 510
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10713 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 15
  • Position: #3228 / 3700
  • Number of attempts: 2
Words in parens - 12992 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2767 / 3977
  • Number of attempts: 2
Simple text editing with Vim - 13262 entries

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

  • Best score: 13
  • Best player score: 20
  • Position: #2921 / 3810
  • Number of attempts: 1
SRINIVASU SALADI
Twitter2:

entered into 51 challenges

contributed 0 challenges