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

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

  • Best score: 14
  • Best player score: 16
  • Position: #59 / 231
  • Number of attempts: 2
Tabbed Table to Python Array - 375 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: 51
  • Best player score: 59
  • Position: #41 / 108
  • Number of attempts: 3
HS exam question - 1124 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 48
  • Position: #19 / 306
  • Number of attempts: 6
Reformat symbols in list - 1021 entries

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

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

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 71
  • Position: #42 / 110
  • Number of attempts: 4
Substraction (bis) - 383 entries

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

  • Best score: 22
  • Best player score: 28
  • Position: #33 / 80
  • Number of attempts: 7
Changing around text with citations - 197 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 34
  • Position: #22 / 60
  • Number of attempts: 4
Poorly indented Python comments - 866 entries

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

  • Best score: 15
  • Best player score: 30
  • Position: #85 / 168
  • Number of attempts: 2
2 quick changes and a numbered list - 451 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: #54 / 108
  • Number of attempts: 2
delete swap - 1095 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #13 / 356
  • Number of attempts: 4
Generate a very basic Python constructor (fixed) - 924 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 / 207
  • Number of attempts: 13
Fix the shell script! - 1728 entries

Fix the shell script with the fewest keystrokes!

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

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

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

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

  • Best score: 10
  • Best player score: 11
  • Position: #114 / 458
  • Number of attempts: 4
Wikitext headings to markdown - 781 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 21
  • Position: #43 / 172
  • Number of attempts: 4
hello-world-vimgolf - 1981 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #173 / 564
  • Number of attempts: 2
Fill in the chess board - 737 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 / 155
  • Number of attempts: 12
Plotting some variables in python - 1396 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: #83 / 295
  • Number of attempts: 6
Transpose a python matrix - 684 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 37
  • Position: #45 / 117
  • Number of attempts: 4
Increment number for every 10 lines - 180 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: #20 / 53
  • Number of attempts: 4
simple replacements - 1264 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #94 / 283
  • Number of attempts: 4
Inverting Lines - 1562 entries

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

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

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 61
  • Position: #32 / 77
  • Number of attempts: 7
Generate a very basic Python constructor - 292 entries

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

  • Best score: 38
  • Best player score: 39
  • Position: #25 / 85
  • Number of attempts: 5
Python dataclasses - 796 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #33 / 204
  • Number of attempts: 4
Count to 100 in word form - 54 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: 55
  • Best player score: 68
  • Position: #5 / 17
  • Number of attempts: 4
RUST HTML to maud. - 17 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 / 9
  • Number of attempts: 4
RUST Cargo.toml version to last - 283 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #44 / 80
  • Number of attempts: 5
RUST match with enum for Coin - 168 entries

RUST match with enum for Coin rusty practice on vimgolf

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

Simple challenge for frequent action while programming.

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

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 36
  • Position: #87 / 261
  • Number of attempts: 2
Enumerate Bullets - 253 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: #40 / 67
  • Number of attempts: 4
Put a cross in the square - 175 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 23
  • Position: #35 / 76
  • Number of attempts: 2
swap number pairs - 1871 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #70 / 346
  • Number of attempts: 7
HS Final exam vimgolf - 815 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: #90 / 215
  • Number of attempts: 4
Extend shell script - 92 entries

Just add some more stuff

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

Just add another alias to each worker

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

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

  • Best score: 41
  • Best player score: 41
  • Position: #10 / 58
  • Number of attempts: 8
Change double quotes to single quotes, but with a twist - 263 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 / 50
  • Number of attempts: 7
C to python code snippet - 70 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 / 24
  • Number of attempts: 7
Python: Def to Lambda - 410 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #67 / 142
  • Number of attempts: 4
Format the CSS - 109 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: #12 / 40
  • Number of attempts: 4
Rural Post - 4254 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #364 / 1044
  • Number of attempts: 5
Satisfy the go linter - 2076 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 / 422
  • Number of attempts: 4
Add quotes to ansible playbook - 845 entries

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

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

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

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

Reformat this copy-paste data! #csv

  • Best score: 38
  • Best player score: 55
  • Position: #38 / 58
  • Number of attempts: 3
xrandr outputs and dashes - 624 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 / 205
  • Number of attempts: 3
From a Thunderlink to a Markdown link - 720 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 / 160
  • Number of attempts: 5
Capitalize the Names - 330 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: #52 / 84
  • Number of attempts: 5
Yo To Hello - 1081 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #262 / 497
  • Number of attempts: 2
C# function to F# - 22 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: 105
  • Best player score: 105
  • Position: #1 / 8
  • Number of attempts: 4
C# data class to F# record - 56 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: #9 / 14
  • Number of attempts: 1
Replace pattern with 1, 2, 3, ... on each line - 1054 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: #89 / 214
  • Number of attempts: 6
Simple, Practical, and Common - 33136 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 / 7308
  • Number of attempts: 8
Hogwarts Email Sorting - 850 entries

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

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

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

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

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

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

Just give me the numbers.

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

Complete golang import statement.

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

a missed line and index names need to be added

  • Best score: 44
  • Best player score: 51
  • Position: #14 / 26
  • Number of attempts: 4
Aliases for cd - 820 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: #23 / 147
  • Number of attempts: 13
Quote modules (ver.2) - 197 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 29
  • Position: #42 / 53
  • Number of attempts: 1
Unsemantic linewrapping - 861 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: #139 / 218
  • Number of attempts: 4
Applying same text modification in several lines - 2793 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #258 / 827
  • Number of attempts: 5
Refactor typescript arrow function type - 295 entries

Make arrow function type less verbose and easier to read

  • Best score: 20
  • Best player score: 25
  • Position: #39 / 66
  • Number of attempts: 2
Add string initializers to an enum - 836 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 21
  • Position: #66 / 246
  • Number of attempts: 8
SCREAMING_SNAKE_CASE to Title Case - 1124 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: #111 / 235
  • Number of attempts: 3
Add semicolons - 10720 entries

Simply add a semicolon at the end of each line

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

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

  • Best score: 18
  • Best player score: 19
  • Position: #200 / 502
  • Number of attempts: 2
remove lines containing the word "reader" - 3483 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #832 / 1128
  • Number of attempts: 5
Com(m)a Trouble - 3511 entries

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

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

Extract wireshark capture filter from IP plan

  • Best score: 25
  • Best player score: 28
  • Position: #39 / 64
  • Number of attempts: 5
Box it - 7756 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Position: #542 / 1847
  • Number of attempts: 4
citizen_hacks_2019_part5 - 15 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 48
  • Best player score: 50
  • Position: #3 / 7
  • Number of attempts: 5
Copy three lines - 2824 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 / 630
  • Number of attempts: 9
That hyphen - 2522 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 10
  • Position: #276 / 689
  • Number of attempts: 2
Just the middle - 11289 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3116 / 4144
  • Number of attempts: 1
Team names - 1790 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 18
  • Position: #394 / 575
  • Number of attempts: 3
Subnetting - 105 entries

Split up the IP addresses in the right way.

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

sometimes we want to sort structures alphabetically in yaml files

  • Best score: 31
  • Best player score: 35
  • Position: #7 / 17
  • Number of attempts: 2
Python Hello World! Reformatting - 930 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: #244 / 361
  • Number of attempts: 2
Format java properties - 71 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: #13 / 32
  • Number of attempts: 5
Basic renumbering - 5489 entries

Renumbering Basic.

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

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Position: #830 / 2072
  • Number of attempts: 5
C Reformatting - 687 entries

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

  • Best score: 30
  • Best player score: 37
  • Position: #57 / 160
  • Number of attempts: 5
One to Ten - 2123 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 / 650
  • Number of attempts: 2
Line under headers - 1941 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #181 / 479
  • Number of attempts: 10
Increment each number - 959 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 19
  • Position: #114 / 238
  • Number of attempts: 5
Greek Letters - 60 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: #11 / 22
  • Number of attempts: 10
Label grid cells (6x6) - 34 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: #13 / 15
  • Number of attempts: 1
Restore order to the alphabet - 183 entries

The numbers are OK. The letters are wonky.

  • Best score: 12
  • Best player score: 13
  • Position: #36 / 66
  • Number of attempts: 4
Entries sort - 80 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 / 37
  • Number of attempts: 3
swap or reverse - 105 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 16
  • Position: #50 / 63
  • Number of attempts: 2
Line 'em up! - 384 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: #65 / 107
  • Number of attempts: 5
I forgot quotes - 15852 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1083 / 4136
  • Number of attempts: 8
vim1001 - 274 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: #71 / 106
  • Number of attempts: 1
Roman numerals - 68 entries

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

  • Best score: 17
  • Best player score: 19
  • Position: #11 / 27
  • Number of attempts: 5
-a-b-c- - 3149 entries

Put hyphens everywhere.

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

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #270 / 347
  • Number of attempts: 3
Suffix sort - 244 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: #51 / 64
  • Number of attempts: 3
Gray area - 712 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 13
  • Position: #180 / 264
  • Number of attempts: 4
Refactor static member invocation - 194 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 / 62
  • Number of attempts: 5
Comparing scores - 94 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: #20 / 33
  • Number of attempts: 6
A HAPPY NEW YEAR 2014 ! - 10566 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1556 / 3647
  • 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 - 246 entries

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

  • Best score: 25
  • Best player score: 32
  • Position: #16 / 74
  • Number of attempts: 4
Words in parens - 12790 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1849 / 3932
  • 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 - 390 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #184 / 223
  • Number of attempts: 2
Python: Lots of function arguments - 99 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: #41 / 45
  • Number of attempts: 2
Chucking wood - 94 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: 51
  • Best player score: 65
  • Position: #38 / 42
  • Number of attempts: 1
citizen_hacks_2019_challenge1 - 45 entries

For the Citizen Hacks 2019 Vim competition

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

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

  • Best score: 18
  • Best player score: 20
  • Position: #283 / 756
  • Number of attempts: 5
switch variable - 4997 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #983 / 1724
  • Number of attempts: 1
Line Zipper - 449 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 15
  • Position: #90 / 209
  • Number of attempts: 2
PHP Array Syntax -> MailChimp Merge Syntax - 505 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 / 146
  • Number of attempts: 5
A Simple One - 973 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 / 633
  • Number of attempts: 1
82 bottles of beer on the wall - 296 entries

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

  • Best score: 107
  • Best player score: 117
  • Position: #30 / 138
  • Number of attempts: 2
Table Reshuffle - 366 entries

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

  • Best score: 22
  • Best player score: 40
  • Position: #109 / 132
  • Number of attempts: 4
Another Mixed-Up Haiku - 232 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 27
  • Position: #57 / 84
  • Number of attempts: 3
Indentation - 481 entries

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

  • Best score: 21
  • Best player score: 30
  • Position: #119 / 166
  • Number of attempts: 3
Turn this csv list into queries - 203 entries

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

  • Best score: 98
  • Best player score: 128
  • Position: #58 / 94
  • Number of attempts: 1
Compile C - 357 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 23
  • Position: #95 / 129
  • Number of attempts: 4
Context Insensitive completion 1 - 444 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 18
  • Position: #149 / 228
  • Number of attempts: 1
PEP8 Python Wrapping Comments and Code - 174 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: 23
  • Best player score: 35
  • Position: #48 / 63
  • Number of attempts: 1
Simple text editing with Vim - 11897 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 / 3482
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 6251 entries

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

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

entered into 128 challenges

contributed 0 challenges