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

hello-world-vimgolf - 809 entries

Simple number generation

  • Best score: 10
  • Best player score: 13
  • Position: #172 / 240
  • Number of attempts: 1
Lowercase first characters - 269 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 37
  • Position: #41 / 99
  • Number of attempts: 2
Inverting Lines - 1113 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 11
  • Position: #153 / 308
  • Number of attempts: 4
Generate a very basic Python constructor - 226 entries

I actually needed to do this myself, so I look forward to learning how.

  • Best score: 38
  • Best player score: 91
  • Position: #56 / 57
  • Number of attempts: 1
Python dataclasses - 520 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 32
  • Position: #110 / 140
  • Number of attempts: 1
RUST Cargo.toml version to last - 200 entries

RUST Cargo.toml version to last. rusty practice on vimgolf

  • Best score: 16
  • Best player score: 28
  • Position: #56 / 61
  • Number of attempts: 1
Making 3 line function a one liner. - 116 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #27 / 81
  • Number of attempts: 1
HS Final exam vimgolf - 597 entries

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

  • Best score: 21
  • Best player score: 37
  • Position: #121 / 159
  • Number of attempts: 1
Extend shell script - 66 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 75
  • Position: #21 / 26
  • Number of attempts: 1
Easy modification of ssh config - 176 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 31
  • Position: #40 / 53
  • Number of attempts: 1
ssh config skills - 175 entries

Parse output from `kuebctl get no -o wide` into an .ssh/config file!

  • Best score: 41
  • Best player score: 75
  • Position: #34 / 44
  • Number of attempts: 1
Turn the x - 194 entries

Turn the x to a +

  • Best score: 19
  • Best player score: 23
  • Position: #38 / 53
  • Number of attempts: 1
Rural Post - 3886 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #563 / 962
  • Number of attempts: 1
Add quotes to ansible playbook - 655 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 11
  • Position: #191 / 210
  • Number of attempts: 1
Multiline to Single Line - 408 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 7
  • Position: #184 / 195
  • Number of attempts: 1
From a Thunderlink to a Markdown link - 677 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: 25
  • Position: #115 / 151
  • Number of attempts: 1
Replace pattern with 1, 2, 3, ... on each line - 968 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: 35
  • Position: #150 / 198
  • Number of attempts: 1
Hogwarts Email Sorting - 811 entries

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

  • Best score: 20
  • Best player score: 27
  • Position: #193 / 232
  • Number of attempts: 1
Add text at some column - 137 entries

Complete golang struct statement.

  • Best score: 31
  • Best player score: 32
  • Position: #30 / 53
  • Number of attempts: 1
Swap values - 4415 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 22
  • Position: #1165 / 1236
  • Number of attempts: 1
Quote modules - 1003 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 26
  • Position: #131 / 255
  • Number of attempts: 1
Quote modules (ver.2) - 187 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 27
  • Position: #35 / 49
  • Number of attempts: 1
Swap values inside brackets - 2423 entries

Easy challenge.

  • Best score: 14
  • Best player score: 24
  • Position: #484 / 558
  • Number of attempts: 1
Unsemantic linewrapping - 822 entries

[Inspired by a blog post I read: https://scott.mn/2014/02/21/semantic_linewrapping/. Text adapted.] Sometimes when editing a Markdown file, I wrap the lines semantically. Instead of inserting a newline at 70 columns (or whatever), or making paragraphs one long line, I put in newlines at a point that seems logical to me. This may seem silly, but it produces better diffs. Semantic linewrapping also makes editing snappier. I can delete, edit or insert sentences easily using linewise operations. Code-oriented text editors like Vim and [REDACTED] are really good at this kind of manipulation. Editing text that hasn't been wrapped semantically is a pain, though:

  • Best score: 9
  • Best player score: 16
  • Position: #194 / 206
  • Number of attempts: 1
Applying same text modification in several lines - 2720 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #585 / 809
  • Number of attempts: 1
Add string initializers to an enum - 741 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 26
  • Position: #147 / 221
  • Number of attempts: 1
SCREAMING_SNAKE_CASE to Title Case - 1098 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 26
  • Position: #124 / 228
  • Number of attempts: 1
remove lines containing the word "reader" - 3442 entries

easy stuff

  • Best score: 9
  • Best player score: 11
  • Position: #894 / 1115
  • Number of attempts: 1
Extract wireshark capture filter - 171 entries

Extract wireshark capture filter from IP plan

  • Best score: 25
  • Best player score: 31
  • Position: #42 / 56
  • Number of attempts: 1
Box it - 7667 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 25
  • Position: #1012 / 1831
  • Number of attempts: 1
Cool or not? - 748 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 22
  • Position: #173 / 214
  • Number of attempts: 1
Copy three lines - 2778 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 22
  • Position: #500 / 621
  • Number of attempts: 1
Convert Application Output to CSV - 171 entries

Change the application output to comma-separated values

  • Best score: 17
  • Best player score: 32
  • Position: #47 / 48
  • Number of attempts: 1
Flip the bit - 104 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 10
  • Position: #60 / 63
  • Number of attempts: 1
Missing Library and a Typo - 829 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 15
  • Best player score: 21
  • Position: #160 / 203
  • Number of attempts: 1
Adam's challenge - 912 entries

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

  • Best score: 18
  • Best player score: 24
  • Position: #217 / 255
  • Number of attempts: 1
Fiddle percentages into real numbers - 794 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 18
  • Position: #235 / 270
  • Number of attempts: 1
replace 2nd column blanks with values in same column if blank - 209 entries

Where ,SOMELOGB and ,SOMELOGC replaces each /r carriage return if 2nd column is blank. The replace only happens if 2nd column is blank though and should replace up to the non blank row.

  • Best score: 15
  • Best player score: 18
  • Position: #58 / 72
  • Number of attempts: 1
Order and join - 859 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 19
  • Position: #223 / 237
  • Number of attempts: 1
Paragraph breaks - 480 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 13
  • Position: #129 / 159
  • Number of attempts: 1
One to Ten - 2078 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: 14
  • Position: #481 / 637
  • Number of attempts: 1
Change part of a function name in multiple occurrences - 595 entries

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

  • Best score: 14
  • Best player score: 16
  • Position: #143 / 190
  • Number of attempts: 1
Line under headers - 1905 entries

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

  • Best score: 24
  • Best player score: 33
  • Position: #323 / 468
  • Number of attempts: 1
Delete to the end of the current line - 711 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 6
  • Position: #321 / 348
  • Number of attempts: 2
Label grid cells (6x6) - 19 entries

Label the cells of a grid with its coordinates. Rows are labelled top to bottom from A to F, and columns left to right from A to F. Each cell has a coordinate MN, where M is the row letter and N is the column letter.

  • Best score: 31
  • Best player score: 50
  • Position: #8 / 10
  • Number of attempts: 1
move titles next to url, in quotes - 481 entries

had trouble with something similar

  • Best score: 19
  • Best player score: 24
  • Position: #107 / 127
  • Number of attempts: 1
:wq
Twitter:

Cloud Engineer (2022/04~) #Golang #Python #Docker #Kubernetes #AWS #Azure #GCP #OSS #DevOps #CICD #SRE #Microservices #Vim

entered into 46 challenges

contributed 0 challenges