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

Paste a column after a column - 2367 entries

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

  • Best score: 14
  • Best player score: 16
  • Position: #127 / 514
  • Number of attempts: 2
Tabbed Table to Python Array - 646 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 50
  • Best player score: 59
  • Position: #70 / 168
  • Number of attempts: 3
HS exam question - 1517 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 48
  • Position: #26 / 401
  • Number of attempts: 6
Reformat symbols in list - 1482 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 24
  • Position: #10 / 328
  • Number of attempts: 8
Fizzbuzz - 534 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 71
  • Position: #62 / 160
  • Number of attempts: 4
Substraction (bis) - 580 entries

Solve the equations (adapted from the original @Caek_'s challenge).

  • Best score: 21
  • Best player score: 28
  • Position: #48 / 109
  • Number of attempts: 7
Changing around text with citations - 323 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 34
  • Position: #35 / 89
  • Number of attempts: 4
Poorly indented Python comments - 1263 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 30
  • Position: #110 / 211
  • Number of attempts: 2
2 quick changes and a numbered list - 613 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 44
  • Position: #70 / 147
  • Number of attempts: 2
delete swap - 1614 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #13 / 503
  • Number of attempts: 4
Generate a very basic Python constructor (fixed) - 1215 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 29
  • Position: #20 / 255
  • Number of attempts: 13
Fix the shell script! - 2404 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 26
  • Position: #21 / 558
  • Number of attempts: 7
Visual block training - 1041 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 23
  • Position: #64 / 192
  • Number of attempts: 8
Put a newline after every 10 lines in vim - 1629 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 11
  • Position: #123 / 543
  • Number of attempts: 4
Wikitext headings to markdown - 984 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 21
  • Position: #57 / 206
  • Number of attempts: 4
hello-world-vimgolf - 2411 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #173 / 686
  • Number of attempts: 2
Fill in the chess board - 932 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 19
  • Position: #16 / 179
  • Number of attempts: 12
Plotting some variables in python - 1597 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 37
  • Position: #98 / 342
  • Number of attempts: 6
Transpose a python matrix - 847 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 37
  • Position: #58 / 135
  • Number of attempts: 4
Increment number for every 10 lines - 228 entries

The file consists of 2 columns (code and percentage). We need to add 2 more columns with increasing number for 4th column (Xcols) and increment 3rd column (Ycols) only for every 10 lines with reset of 4th column

  • Best score: 25
  • Best player score: 28
  • Position: #21 / 62
  • Number of attempts: 4
simple replacements - 1706 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #117 / 377
  • Number of attempts: 4
Inverting Lines - 1866 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #110 / 504
  • Number of attempts: 3
CSV to MD format - 403 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 61
  • Position: #37 / 93
  • Number of attempts: 7
Generate a very basic Python constructor - 315 entries

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

  • Best score: 38
  • Best player score: 39
  • Position: #27 / 97
  • Number of attempts: 5
Python dataclasses - 1120 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #33 / 280
  • Number of attempts: 4
Count to 100 in word form - 120 entries

Write all the numbers from 1 to 100, using their word forms rather than the digit form. Most of the parts you will need are included in the input file. Use hyphens when appropriate.

  • Best score: 53
  • Best player score: 68
  • Position: #11 / 27
  • Number of attempts: 4
RUST HTML to maud. - 18 entries

RUST HTML to maud. maud is one of the template engines for server-side rendering based on rust. rusty practice on vimgolf

  • Best score: 135
  • Best player score: 159
  • Position: #2 / 10
  • Number of attempts: 4
RUST Cargo.toml version to last - 325 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #47 / 96
  • Number of attempts: 5
RUST match with enum for Coin - 180 entries

RUST match with enum for Coin rusty practice on vimgolf

  • Best score: 84
  • Best player score: 90
  • Position: #9 / 51
  • Number of attempts: 4
Making 3 line function a one liner. - 311 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #101 / 199
  • Number of attempts: 1
Modernise code - 1352 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 36
  • Position: #101 / 313
  • Number of attempts: 2
Enumerate Bullets - 308 entries

We will need to refer to the bullet points in our document explicitly later, so we need to assign them some ID's!

  • Best score: 20
  • Best player score: 25
  • Position: #51 / 83
  • Number of attempts: 4
Put a cross in the square - 209 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 23
  • Position: #42 / 86
  • Number of attempts: 2
swap number pairs - 2022 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #73 / 373
  • Number of attempts: 7
HS Final exam vimgolf - 887 entries

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

  • Best score: 21
  • Best player score: 24
  • Position: #99 / 233
  • Number of attempts: 4
Extend shell script - 109 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 39
  • Position: #12 / 43
  • Number of attempts: 8
Easy modification of ssh config - 343 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 24
  • Position: #9 / 106
  • Number of attempts: 5
ssh config skills - 249 entries

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

  • Best score: 41
  • Best player score: 41
  • Position: #10 / 63
  • Number of attempts: 8
Change double quotes to single quotes, but with a twist - 291 entries

Although this challenge is in the context of a Python function, you don't need to know Python to do this challenge. It is to add contexts and interesting constraints. The file contains a function that prints a multi-line string literal. I wrote the string literal with double quotes, but then I decided to use single quotes instead, and that's your challenge. However, interestingly enough, the string itself contains single and double quotes. This means, inside the string literal, the originally escaped double quotes no longer need to be escaped, but the single quotes now need to be escaped. Note that the triple double quotes in the docstring should be left alone.

  • Best score: 22
  • Best player score: 22
  • Position: #19 / 55
  • Number of attempts: 7
C to python code snippet - 81 entries

C code can be easily translated into Python code. However, the difference in syntax can make this process tedious and time-consuming. Can Vim help you here?

  • Best score: 48
  • Best player score: 48
  • Position: #2 / 28
  • Number of attempts: 7
Python: Def to Lambda - 435 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #67 / 152
  • Number of attempts: 4
Format the CSS - 136 entries

You just copied some CSS color names from the web and need to add them to your python module. Create the COLORS variable and assign a dict() with the names as keys and hex-colors as values. BEWARE OF THE TABS!!

  • Best score: 41
  • Best player score: 43
  • Position: #15 / 45
  • Number of attempts: 4
Rural Post - 4410 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #375 / 1083
  • Number of attempts: 5
Satisfy the go linter - 2350 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: 20
  • Position: #75 / 462
  • Number of attempts: 4
Add quotes to ansible playbook - 940 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #28 / 300
  • Number of attempts: 2
Multiline to Single Line - 679 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #90 / 297
  • Number of attempts: 1
Data reformat - 285 entries

Reformat this copy-paste data! #csv

  • Best score: 36
  • Best player score: 55
  • Position: #42 / 62
  • Number of attempts: 3
xrandr outputs and dashes - 670 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: #91 / 217
  • Number of attempts: 3
From a Thunderlink to a Markdown link - 756 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: 18
  • Position: #54 / 167
  • Number of attempts: 5
Capitalize the Names - 382 entries

I want to capitalize the names in quotes, but just the people's names, not the file names.

  • Best score: 21
  • Best player score: 26
  • Position: #59 / 95
  • Number of attempts: 5
Yo To Hello - 1122 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #262 / 520
  • Number of attempts: 2
C# function to F# - 25 entries

Converting from C# to F# is not hard, but requires some manual labor. Here you should convert a C# function using a C# class to a F# function using a C# class.

  • Best score: 101
  • Best player score: 105
  • Position: #2 / 9
  • Number of attempts: 4
C# data class to F# record - 68 entries

Converting from C# to F# is not hard, but requires some manual labor. Here you should convert from a C# data class to a F# record.

  • Best score: 63
  • Best player score: 77
  • Position: #11 / 16
  • Number of attempts: 1
Replace pattern with 1, 2, 3, ... on each line - 1113 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: 26
  • Position: #95 / 228
  • Number of attempts: 6
Simple, Practical, and Common - 33430 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: 22
  • Position: #2287 / 7378
  • Number of attempts: 8
Hogwarts Email Sorting - 890 entries

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

  • Best score: 20
  • Best player score: 20
  • Position: #43 / 256
  • Number of attempts: 4
Get mail address from outlook format - 641 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 15
  • Position: #74 / 201
  • Number of attempts: 2
prepend * to every non-blank line - 6249 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #358 / 1527
  • Number of attempts: 8
One number per line - 18656 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #705 / 3850
  • Number of attempts: 12
Quote modules - 1063 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 21
  • Position: #31 / 277
  • Number of attempts: 8
add line and index - 99 entries

a missed line and index names need to be added

  • Best score: 44
  • Best player score: 51
  • Position: #16 / 28
  • Number of attempts: 4
Aliases for cd - 876 entries

Create these beautiful aliases with as few strokes as possible. Are you up for the challenge?

  • Best score: 30
  • Best player score: 31
  • Position: #26 / 154
  • Number of attempts: 13
Quote modules (ver.2) - 224 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 29
  • Position: #46 / 58
  • Number of attempts: 1
Unsemantic linewrapping - 901 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: 10
  • Position: #143 / 226
  • Number of attempts: 4
Applying same text modification in several lines - 2851 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #263 / 843
  • Number of attempts: 5
Refactor typescript arrow function type - 306 entries

Make arrow function type less verbose and easier to read

  • Best score: 20
  • Best player score: 25
  • Position: #42 / 69
  • Number of attempts: 2
Add string initializers to an enum - 865 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 21
  • Position: #66 / 255
  • Number of attempts: 8
SCREAMING_SNAKE_CASE to Title Case - 1202 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: 20
  • Position: #116 / 247
  • Number of attempts: 3
Add semicolons - 10809 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #670 / 3050
  • Number of attempts: 8
Bad Copy Syntax - 2008 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #205 / 518
  • Number of attempts: 2
remove lines containing the word "reader" - 3555 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #843 / 1150
  • Number of attempts: 5
Com(m)a Trouble - 3705 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #130 / 835
  • Number of attempts: 6
Extract wireshark capture filter - 202 entries

Extract wireshark capture filter from IP plan

  • Best score: 25
  • Best player score: 28
  • Position: #42 / 68
  • Number of attempts: 5
Box it - 7836 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Position: #546 / 1868
  • Number of attempts: 4
citizen_hacks_2019_part5 - 25 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 48
  • Best player score: 50
  • Position: #5 / 9
  • Number of attempts: 5
Copy three lines - 2863 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #172 / 637
  • Number of attempts: 9
That hyphen - 2564 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 10
  • Position: #279 / 697
  • Number of attempts: 2
Just the middle - 11370 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3126 / 4168
  • Number of attempts: 1
Team names - 1808 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 18
  • Position: #399 / 582
  • Number of attempts: 3
Subnetting - 111 entries

Split up the IP addresses in the right way.

  • Best score: 29
  • Best player score: 29
  • Position: #12 / 36
  • Number of attempts: 6
Sort yaml structures alphabetically by root key names - 38 entries

sometimes we want to sort structures alphabetically in yaml files

  • Best score: 31
  • Best player score: 35
  • Position: #8 / 18
  • Number of attempts: 2
Python Hello World! Reformatting - 945 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 44
  • Position: #246 / 368
  • Number of attempts: 2
Format java properties - 72 entries

Format java properties to a different format. The value which is the string following the first '=' cannot & should not change. All periods in the key get replaced with an underscore "_" and get a prefix of "b_".

  • Best score: 27
  • Best player score: 31
  • Position: #14 / 33
  • Number of attempts: 5
Basic renumbering - 5605 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #243 / 1260
  • Number of attempts: 8
Vice versa - 7820 entries

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Position: #840 / 2109
  • Number of attempts: 5
C Reformatting - 688 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 37
  • Position: #58 / 161
  • Number of attempts: 5
One to Ten - 2174 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: #319 / 664
  • Number of attempts: 2
Line under headers - 2022 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #189 / 498
  • Number of attempts: 10
Increment each number - 994 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 19
  • Position: #118 / 244
  • Number of attempts: 5
Greek Letters - 62 entries

Starting with a list of Greek letters, create a cross-reference table showing all of the Greek alpha-beta. You'll likely need to use digraphs (:help digraphs). Note that while most digraphs can be entered with either character first, lowercase sigma has two digraphs -- s* AND *s! Good luck!

  • Best score: 34
  • Best player score: 64
  • Position: #12 / 24
  • Number of attempts: 10
Label grid cells (6x6) - 50 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: 60
  • Position: #16 / 18
  • Number of attempts: 1
Restore order to the alphabet - 196 entries

The numbers are OK. The letters are wonky.

  • Best score: 12
  • Best player score: 13
  • Position: #38 / 70
  • Number of attempts: 4
Entries sort - 81 entries

It cames to my mind a weird idea : sorting parts of my .vimrc. Take few minutes to sort out this, it's easy !

  • Best score: 14
  • Best player score: 14
  • Position: #19 / 38
  • Number of attempts: 3
swap or reverse - 117 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 16
  • Position: #50 / 67
  • Number of attempts: 2
Line 'em up! - 395 entries

It can be so hard to keep everything neatly lined-up. Somebody clearly hasn't bothered here. Tidy it up, please!

  • Best score: 17
  • Best player score: 20
  • Position: #67 / 111
  • Number of attempts: 5
I forgot quotes - 15943 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1083 / 4165
  • Number of attempts: 8
vim1001 - 283 entries

change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )

  • Best score: 17
  • Best player score: 23
  • Position: #72 / 108
  • Number of attempts: 1
Roman numerals - 69 entries

Use the substitutions on top to convert unary to Roman numerals.

  • Best score: 17
  • Best player score: 19
  • Position: #12 / 28
  • Number of attempts: 5
-a-b-c- - 3181 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #309 / 1131
  • Number of attempts: 6
Count both ways - 1006 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #274 / 352
  • Number of attempts: 3
Suffix sort - 254 entries

Sort from the end of the line, as if the letters in each line were reversed.

  • Best score: 19
  • Best player score: 29
  • Position: #52 / 65
  • Number of attempts: 3
Gray area - 745 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 13
  • Position: #185 / 270
  • Number of attempts: 4
Refactor static member invocation - 198 entries

Someone used a static method. Refactor the method into a static import while fixing the assertion.

  • Best score: 28
  • Best player score: 29
  • Position: #29 / 63
  • Number of attempts: 5
Comparing scores - 95 entries

If Alice and Bob both did the challenge, put their entries together in the top paragraph, so we can compare their scores more easily.

  • Best score: 18
  • Best player score: 32
  • Position: #21 / 34
  • Number of attempts: 6
A HAPPY NEW YEAR 2014 ! - 10641 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1556 / 3673
  • Number of attempts: 2
Recursive Cowsay - 58 entries

Convert 'cowsay' statement to recursive output

  • Best score: 33
  • Best player score: 34
  • Position: #5 / 17
  • Number of attempts: 7
Number an outline - 251 entries

The indent and words are right, but the numbers are all wrong.

  • Best score: 25
  • Best player score: 32
  • Position: #17 / 76
  • Number of attempts: 4
Words in parens - 12867 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1858 / 3949
  • Number of attempts: 2
Assign list - 169 entries

Assign list elements to matrix

  • Best score: 30
  • Best player score: 34
  • Position: #20 / 59
  • Number of attempts: 4
Delete unwanted lines - 396 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Position: #184 / 225
  • Number of attempts: 2
Python: Lots of function arguments - 105 entries

The function definition is too long for one line. The modeline helps you with some typical Python indent settings.

  • Best score: 6
  • Best player score: 27
  • Position: #43 / 48
  • Number of attempts: 2
Chucking wood - 112 entries

An exercise in compressing repetitive text. For this challenge, any entry that uses keys outside the main row (such as arrow keys, Home, End, Delete, etc.) will be removed. (Esc is OK, though you should be using C-[ anyway.)

  • Best score: 50
  • Best player score: 65
  • Position: #41 / 47
  • Number of attempts: 1
citizen_hacks_2019_challenge1 - 50 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 5
  • Best player score: 5
  • Position: #29 / 44
  • Number of attempts: 1
replacing each line of a block selection - 2947 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 20
  • Position: #288 / 768
  • Number of attempts: 5
switch variable - 5041 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #990 / 1738
  • Number of attempts: 1
Line Zipper - 450 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 15
  • Position: #90 / 210
  • Number of attempts: 2
PHP Array Syntax -> MailChimp Merge Syntax - 507 entries

I recently needed to send an e-mail to our marketing department listing allowed merge tags for our MailChimp campaigns. The allowed merge tags were determined from a PHP array in one of our PHP classes. I transformed the PHP class to MailChimp's syntax and sent the e-mail. It was, however, a long, laborious process. I'm still fairly new to Vim and would love to see how an expert Vim user would tackle one of my own, real-world problems. Thanks and have fun!

  • Best score: 23
  • Best player score: 25
  • Position: #55 / 148
  • Number of attempts: 5
A Simple One - 1005 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #538 / 646
  • Number of attempts: 1
82 bottles of beer on the wall - 307 entries

Take them down. (sorry, only 82 bottles because the problem size is limited!)

  • Best score: 106
  • Best player score: 117
  • Position: #32 / 143
  • Number of attempts: 2
Table Reshuffle - 372 entries

Fix the column order in this table... also append the new 'username' column.

  • Best score: 22
  • Best player score: 40
  • Position: #111 / 135
  • Number of attempts: 4
Another Mixed-Up Haiku - 238 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 27
  • Position: #59 / 86
  • Number of attempts: 3
Indentation - 499 entries

Indent each line according to the right number of spaces it needs.

  • Best score: 20
  • Best player score: 30
  • Position: #122 / 170
  • Number of attempts: 3
Turn this csv list into queries - 205 entries

Transform each line of this csv file into a MySQL-ready INSERT query.

  • Best score: 98
  • Best player score: 128
  • Position: #60 / 96
  • Number of attempts: 1
Compile C - 366 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 23
  • Position: #98 / 133
  • Number of attempts: 4
Context Insensitive completion 1 - 464 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #149 / 234
  • Number of attempts: 1
PEP8 Python Wrapping Comments and Code - 190 entries

According to PEP8, long flowy text and code should have different max line lengths. Code: 79 characters max Long flowy text: 72 characters max

  • Best score: 21
  • Best player score: 35
  • Position: #51 / 65
  • Number of attempts: 1
Simple text editing with Vim - 12395 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #644 / 3605
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 6683 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 39
  • Position: #751 / 1639
  • Number of attempts: 8
quemeraisc
Twitter:

entered into 128 challenges

contributed 0 challenges