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

months to html list items - 1088 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 26
  • Position: #138 / 295
  • Number of attempts: 2
Quicksort - 2036 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 31
  • Position: #356 / 451
  • Number of attempts: 1
Find fix point of cos - 1426 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #131 / 422
  • Number of attempts: 1
Insert column data on Confluence-style table - 474 entries

Add ip addresses into new "IP" column based on the last digits from the "Server" column

  • Best score: 33
  • Best player score: 34
  • Position: #16 / 110
  • Number of attempts: 11
Surround the 'z' character with brackets, quotes, and print as formatted string. - 567 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #101 / 318
  • Number of attempts: 1
Easier Align - 406 entries

Align the columns of a markdown table

  • Best score: 51
  • Best player score: 62
  • Position: #14 / 96
  • Number of attempts: 7
Paste a column after a column - 2604 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #90 / 565
  • Number of attempts: 3
Filter number combinations that don't add to 11 - 414 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 28
  • Position: #69 / 118
  • Number of attempts: 2
HS exam question - 1596 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 48
  • Position: #39 / 418
  • Number of attempts: 6
Reformat symbols in list - 1633 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #45 / 351
  • Number of attempts: 7
Fizzbuzz - 586 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 44
  • Best player score: 48
  • Position: #28 / 169
  • Number of attempts: 6
Substraction (bis) - 619 entries

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

  • Best score: 21
  • Best player score: 25
  • Position: #39 / 114
  • Number of attempts: 1
Changing around text with citations - 340 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 29
  • Position: #29 / 94
  • Number of attempts: 4
Poorly indented Python comments - 1328 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #37 / 223
  • Number of attempts: 9
Many duplicates - 1459 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #243 / 476
  • Number of attempts: 1
2 quick changes and a numbered list - 648 entries

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

  • Best score: 37
  • Best player score: 38
  • Position: #45 / 155
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 1264 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: #48 / 272
  • Number of attempts: 11
Fix the shell script! - 2605 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #112 / 606
  • Number of attempts: 7
Visual block training - 1089 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #6 / 206
  • Number of attempts: 13
Put a newline after every 10 lines in vim - 1664 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #182 / 559
  • Number of attempts: 3
Wikitext headings to markdown - 1003 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #40 / 210
  • Number of attempts: 1
hello-world-vimgolf - 2505 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #280 / 712
  • Number of attempts: 2
Plotting some variables in python - 1671 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: 35
  • Position: #85 / 349
  • Number of attempts: 3
Transpose a python matrix - 873 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 23
  • Position: #17 / 138
  • Number of attempts: 9
Lowercase first characters - 490 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: 33
  • Position: #31 / 184
  • Number of attempts: 5
Inverting Lines - 1923 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #196 / 516
  • Number of attempts: 1
Making 3 line function a one liner. - 340 entries

Simple challenge for frequent action while programming.

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

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #65 / 326
  • Number of attempts: 7
Staircase - 149 entries

Going downstairs, while singing the alphabet song. Some vb practice to us all. Would it be much easier to make it go from left to right instead?

  • Best score: 21
  • Best player score: 22
  • Position: #7 / 34
  • Number of attempts: 13
Enumerate Bullets - 327 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: 18
  • Best player score: 24
  • Position: #47 / 89
  • Number of attempts: 3
swap number pairs - 2125 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #112 / 386
  • Number of attempts: 12
HS Final exam vimgolf - 906 entries

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

  • Best score: 21
  • Best player score: 21
  • Position: #35 / 239
  • Number of attempts: 4
Easy modification of ssh config - 382 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 25
  • Position: #40 / 115
  • Number of attempts: 3
Python: Def to Lambda - 460 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #82 / 157
  • Number of attempts: 4
Turn the x - 328 entries

Turn the x to a +

  • Best score: 19
  • Best player score: 19
  • Position: #18 / 82
  • Number of attempts: 6
Rural Post - 4563 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #195 / 1113
  • Number of attempts: 8
Satisfy the go linter - 2448 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: #149 / 484
  • Number of attempts: 9
Add quotes to ansible playbook - 1008 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #144 / 317
  • Number of attempts: 3
Multiline to Single Line - 736 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #226 / 312
  • Number of attempts: 1
xrandr outputs and dashes - 724 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: #141 / 225
  • Number of attempts: 2
Capitalize the Names - 412 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: 21
  • Position: #45 / 98
  • Number of attempts: 12
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: 22
  • Position: #87 / 233
  • Number of attempts: 2
Hogwarts Email Sorting - 930 entries

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

  • Best score: 20
  • Best player score: 20
  • Position: #55 / 263
  • Number of attempts: 4
Get mail address from outlook format - 649 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #81 / 204
  • Number of attempts: 3
Add text at some column - 173 entries

Complete golang struct statement.

  • Best score: 31
  • Best player score: 31
  • Position: #20 / 65
  • Number of attempts: 4
Swap values - 4644 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #517 / 1275
  • Number of attempts: 5
prepend * to every non-blank line - 6358 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #757 / 1551
  • Number of attempts: 3
One number per line - 18780 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 27
  • Position: #3537 / 3877
  • Number of attempts: 2
Right Align Part of the line - 133 entries

The challenge is to right align a part of the line - this is useful in some SQL queries where it's more clear which are the fields displayed

  • Best score: 19
  • Best player score: 20
  • Position: #23 / 42
  • Number of attempts: 3
Quote modules - 1094 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 22
  • Position: #81 / 285
  • Number of attempts: 5
Aliases for cd - 881 entries

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

  • Best score: 30
  • Best player score: 30
  • Position: #18 / 156
  • Number of attempts: 13
Quote modules (ver.2) - 241 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 23
  • Position: #26 / 61
  • Number of attempts: 3
Separate the lines - 191 entries

Every other line is mixed up. Separate them into their original texts.

  • Best score: 11
  • Best player score: 11
  • Position: #57 / 95
  • Number of attempts: 2
citizen_hacks_2019_challenge2 - 200 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Position: #63 / 103
  • Number of attempts: 1
Swap values inside brackets - 2515 entries

Easy challenge.

  • Best score: 13
  • Best player score: 14
  • Position: #100 / 584
  • Number of attempts: 5
Unsemantic linewrapping - 933 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: 9
  • Position: #100 / 232
  • Number of attempts: 4
Applying same text modification in several lines - 2900 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #24 / 859
  • Number of attempts: 3
Add string initializers to an enum - 875 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 22
  • Position: #102 / 260
  • Number of attempts: 2
SCREAMING_SNAKE_CASE to Title Case - 1231 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: #105 / 254
  • Number of attempts: 10
Add semicolons - 10891 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #758 / 3077
  • Number of attempts: 3
Bad Copy Syntax - 2050 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #220 / 533
  • Number of attempts: 4
remove lines containing the word "reader" - 3610 entries

easy stuff

  • Best score: 9
  • Best player score: 15
  • Position: #1095 / 1172
  • Number of attempts: 2
Com(m)a Trouble - 3890 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #165 / 882
  • Number of attempts: 6
Extract wireshark capture filter - 218 entries

Extract wireshark capture filter from IP plan

  • Best score: 25
  • Best player score: 25
  • Position: #8 / 73
  • Number of attempts: 3
Box it - 7939 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Position: #554 / 1885
  • Number of attempts: 4
Tables, Functions, Sprocs - 139 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: 11
  • Position: #39 / 48
  • Number of attempts: 2
Hash staircase - 56 entries

Can you use a strategy to come up with this pattern?

  • Best score: 21
  • Best player score: 21
  • Position: #13 / 25
  • Number of attempts: 5
Cool or not? - 836 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Position: #122 / 231
  • Number of attempts: 1
multiple cursor alternative - 1542 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 19
  • Position: #95 / 384
  • Number of attempts: 5
From argument to object - 1524 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 17
  • Position: #163 / 463
  • Number of attempts: 2
Two pairs of cluster of letters creates word - 749 entries

Clean and group.

  • Best score: 17
  • Best player score: 17
  • Position: #58 / 178
  • Number of attempts: 7
Every other line - 2922 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #269 / 706
  • Number of attempts: 5
Convert Application Output to CSV - 203 entries

Change the application output to comma-separated values

  • Best score: 17
  • Best player score: 17
  • Position: #35 / 56
  • Number of attempts: 4
Preferably without multi-cursor plugin - 542 entries

Originally asked as question on reddit by kpthunder: https://www.reddit.com/r/vim/comments/9fvsro/what_is_the_most_efficient_way_to_go_about/

  • Best score: 30
  • Best player score: 31
  • Position: #39 / 130
  • Number of attempts: 3
Number Sort - 317 entries

sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing

  • Best score: 9
  • Best player score: 9
  • Position: #135 / 169
  • Number of attempts: 1
comment and uncomment code inline - 1151 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 9
  • Position: #154 / 328
  • Number of attempts: 3
Flip the bit - 132 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 9
  • Position: #45 / 75
  • Number of attempts: 2
Just the middle - 11500 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 12
  • Position: #4066 / 4216
  • Number of attempts: 1
Extract HTML option values from tag values - 115 entries

Generate HTML option values from the text in the option tag. If the text contains multiple words, replace the spaces with an underscore and convert all capital letters to small letters.

  • Best score: 34
  • Best player score: 35
  • Position: #12 / 45
  • Number of attempts: 5
Team names - 1846 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #279 / 591
  • Number of attempts: 1
Learn some german verbs - 533 entries

The list needs to be structured so we can print in verbatim and feel ok about how it looks.

  • Best score: 21
  • Best player score: 21
  • Position: #54 / 133
  • Number of attempts: 2
Todo list specification - 401 entries

The every item on the todo list must be done today. Modify the list to reflect that.

  • Best score: 37
  • Best player score: 39
  • Position: #153 / 180
  • Number of attempts: 1
Subnetting - 131 entries

Split up the IP addresses in the right way.

  • Best score: 29
  • Best player score: 29
  • Position: #13 / 39
  • Number of attempts: 4
For all cases. - 168 entries

In this case... change it! :) Watch the line.

  • Best score: 8
  • Best player score: 8
  • Position: #86 / 108
  • Number of attempts: 1
Remember VimGolf Rules ! - 266 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #128 / 144
  • Number of attempts: 1
Turn a ninja to case-insensitive [Nn][Ii][Nn][Jj][Aa] regexp! - 67 entries

I bumped into this in a dailywtf code: http://pastebin.com/QApa5ycS I didn't want to translate a string whenever I wanted to be [Ss][Aa][Rr][Cc][Aa][Ss][Tt][Ii][Cc] on slack, so I figured a script (python, sed, whatever) would be helpful. Well, or a few vim keystroke!

  • Best score: 18
  • Best player score: 18
  • Position: #31 / 39
  • Number of attempts: 2
Basic renumbering - 5685 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #240 / 1270
  • Number of attempts: 1
Simple addition - 332 entries

The right side of the equation is already there. We just need the left one now.

  • Best score: 12
  • Best player score: 12
  • Position: #58 / 124
  • Number of attempts: 2
Interactive git rebase changing commands - 176 entries

How to change the action of some commits in git rebase dialog.

  • Best score: 14
  • Best player score: 15
  • Position: #58 / 80
  • Number of attempts: 2
create arrows in a list - 128 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 10
  • Position: #61 / 77
  • Number of attempts: 1
Adam's challenge - 1008 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: 18
  • Position: #97 / 275
  • Number of attempts: 4
Create a table - 332 entries

Convert the given input into a formatted table

  • Best score: 16
  • Best player score: 16
  • Position: #49 / 105
  • Number of attempts: 6
Fiddle percentages into real numbers - 873 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: 13
  • Position: #162 / 294
  • Number of attempts: 3
Combines all items - 313 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 9
  • Position: #86 / 140
  • Number of attempts: 3
replace 2nd column blanks with values in same column if blank - 242 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: 16
  • Position: #42 / 83
  • Number of attempts: 3
ninja substitution - 1420 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 15
  • Position: #141 / 267
  • Number of attempts: 4
Vice versa - 7968 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1688 / 2144
  • Number of attempts: 2
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: #23 / 77
  • Number of attempts: 5
Order and join - 985 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Position: #80 / 260
  • Number of attempts: 4
Paragraph breaks - 527 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 11
  • Position: #89 / 168
  • Number of attempts: 3
Change attribute to getter - 157 entries

Wrap attributes with a getter method.

  • Best score: 24
  • Best player score: 24
  • Position: #31 / 63
  • Number of attempts: 3
citizen_hacks_2019_challenge4 - 99 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 5
  • Position: #49 / 66
  • Number of attempts: 1
One to Ten - 2234 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: #314 / 679
  • Number of attempts: 5
Change part of a function name in multiple occurrences - 663 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: 15
  • Position: #127 / 209
  • Number of attempts: 1
citizen_hacks_2019_challenge5 - 147 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Position: #45 / 77
  • Number of attempts: 1
Line under headers - 2068 entries

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

  • Best score: 24
  • Best player score: 25
  • Position: #52 / 508
  • Number of attempts: 7
Build a six - 305 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 22
  • Position: #57 / 98
  • Number of attempts: 1
Increment each number - 1036 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 17
  • Position: #91 / 252
  • Number of attempts: 5
simple format (3) - 86 entries

reverse two column values!

  • Best score: 34
  • Best player score: 34
  • Position: #6 / 24
  • Number of attempts: 5
Around the clock - 199 entries

You'll want to use 2 special commands to complete this. If you haven't yet, read through 'input.txt', especially :help simple-changes

  • Best score: 13
  • Best player score: 14
  • Position: #53 / 77
  • Number of attempts: 1
Join 'em - 251 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 4
  • Position: #18 / 151
  • Number of attempts: 1
Delete to the end of the current line - 847 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #253 / 406
  • Number of attempts: 2
Song Transcription Oops - 243 entries

When transcribing vocal music to Canjo Tab you can start by finding the lowest note and assigning that to zero and working your way up from there. However, without fail, I tend to miscount the notes and when I am near done I find a lower note. I mark this with a "z". This means I have to increase all the previous ones by 1. just a sting of numbers :)

  • Best score: 15
  • Best player score: 15
  • Position: #56 / 78
  • Number of attempts: 2
change parenthesis - 296 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 9
  • Position: #91 / 161
  • Number of attempts: 1
Label grid cells (6x6) - 53 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: 31
  • Position: #4 / 20
  • Number of attempts: 8
Remove quotes after first field - 380 entries

Remove the quotes around each field except for the first field.

  • Best score: 16
  • Best player score: 16
  • Position: #32 / 91
  • Number of attempts: 7
Put the months in order - 978 entries

Our contractor thought that months should be in alphabetical order. Put them in calendar order please.

  • Best score: 20
  • Best player score: 20
  • Position: #19 / 164
  • Number of attempts: 4
Reorder the groups - 1182 entries

Change the order so that the groups of fruit come before the vegetables.

  • Best score: 14
  • Best player score: 14
  • Position: #93 / 265
  • Number of attempts: 4
move titles next to url, in quotes - 539 entries

had trouble with something similar

  • Best score: 19
  • Best player score: 20
  • Position: #30 / 144
  • Number of attempts: 3
Array transposition - 2427 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 16
  • Position: #46 / 450
  • Number of attempts: 11
convert yml into java pojo field - 859 entries

How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file

  • Best score: 29
  • Best player score: 29
  • Position: #90 / 228
  • Number of attempts: 3
unknown command - 168 entries

I want change 5 words

  • Best score: 7
  • Best player score: 7
  • Position: #65 / 88
  • Number of attempts: 1
Collect List - 4308 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 13
  • Position: #624 / 1192
  • Number of attempts: 1
I forgot quotes - 16051 entries

Oops.

  • Best score: 10
  • Best player score: 27
  • Position: #4062 / 4194
  • Number of attempts: 1
Words in parens - 12969 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #3011 / 3970
  • Number of attempts: 2
Resort and deup a CSV list - 170 entries

I'm always adding items to a sorted list. There has to be a better way dedup and resort the lists. There are multiple lists with varying lengths to discourage manual sorting. Also Australia's animals are weird.

  • Best score: 44
  • Best player score: 44
  • Position: #12 / 44
  • Number of attempts: 5
If-then-else regexp - 53 entries

Rules: - golf is never following golf - vim comes first! Drawing a finite-state machine diagram could help. #regexp

  • Best score: 37
  • Best player score: 37
  • Position: #6 / 14
  • Number of attempts: 4
ASCII-art Histogram - 320 entries

Create an ASCCI-art histogram for the given numbers. Make sure not to leave trailing whitespaces. Thanks to VimGolf I recently discovered a feature of Vim thAT blew my mind. I'm curious to see what real ninjas make of it ;-)

  • Best score: 33
  • Best player score: 33
  • Position: #9 / 57
  • Number of attempts: 7
Alphabet soup - 434 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 25
  • Position: #16 / 109
  • Number of attempts: 4
Shebangs for all - 2046 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: #72 / 522
  • Number of attempts: 1
A Simple One - 1064 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: #567 / 670
  • Number of attempts: 1
Reverse Simple Deletion - 857 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 15
  • Position: #429 / 461
  • Number of attempts: 2
Reverse characters in a line - 778 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 13
  • Position: #89 / 268
  • Number of attempts: 1
Sort and add attributes - 1499 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 44
  • Position: #561 / 581
  • Number of attempts: 1
Simple text editing with Vim - 13092 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1895 / 3765
  • Number of attempts: 3
moh ayaya
Twitter:

entered into 135 challenges

contributed 0 challenges