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

Turn the months into list items.

  • Best score: 22
  • Best player score: 26
  • Position: #95 / 194
  • Number of attempts: 2
Quicksort - 1631 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: #284 / 363
  • Number of attempts: 1
Find fix point of cos - 1160 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: #116 / 351
  • Number of attempts: 1
Insert column data on Confluence-style table - 437 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: #14 / 102
  • Number of attempts: 11
Surround the 'z' character with brackets, quotes, and print as formatted string. - 494 entries

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

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

Align the columns of a markdown table

  • Best score: 51
  • Best player score: 62
  • Position: #13 / 92
  • Number of attempts: 7
Paste a column after a column - 2316 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 / 502
  • Number of attempts: 3
Filter number combinations that don't add to 11 - 378 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: #64 / 112
  • Number of attempts: 2
HS exam question - 1517 entries

Convert the data to a python dictionary

  • Best score: 12
  • Best player score: 48
  • Position: #38 / 400
  • Number of attempts: 6
Reformat symbols in list - 1477 entries

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

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

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 48
  • Position: #24 / 157
  • Number of attempts: 6
Substraction (bis) - 579 entries

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

  • Best score: 21
  • Best player score: 25
  • Position: #36 / 108
  • Number of attempts: 1
Changing around text with citations - 323 entries

Based off of something I saw on reddit

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

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

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

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #235 / 421
  • Number of attempts: 1
2 quick changes and a numbered list - 610 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: #43 / 146
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 1197 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 / 252
  • Number of attempts: 11
Fix the shell script! - 2373 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #108 / 550
  • Number of attempts: 7
Visual block training - 1028 entries

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

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

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

  • Best score: 10
  • Best player score: 11
  • Position: #177 / 534
  • Number of attempts: 3
Wikitext headings to markdown - 983 entries

Convert the wikitext headings to markdown.

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

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #280 / 680
  • Number of attempts: 2
Plotting some variables in python - 1593 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: #82 / 340
  • Number of attempts: 3
Transpose a python matrix - 847 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 23
  • Position: #17 / 135
  • Number of attempts: 9
Lowercase first characters - 480 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 / 178
  • Number of attempts: 5
Inverting Lines - 1850 entries

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

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

Simple challenge for frequent action while programming.

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

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #65 / 310
  • Number of attempts: 7
Staircase - 137 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: #5 / 31
  • Number of attempts: 13
Enumerate Bullets - 306 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: 24
  • Position: #44 / 82
  • Number of attempts: 3
swap number pairs - 2013 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #109 / 371
  • Number of attempts: 12
HS Final exam vimgolf - 878 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 / 231
  • Number of attempts: 4
Easy modification of ssh config - 336 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 25
  • Position: #36 / 105
  • Number of attempts: 3
Python: Def to Lambda - 432 entries

LAMBDA!!!

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

Turn the x to a +

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

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

  • Best score: 9
  • Best player score: 9
  • Position: #195 / 1081
  • Number of attempts: 8
Satisfy the go linter - 2344 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 / 461
  • Number of attempts: 9
Add quotes to ansible playbook - 937 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #139 / 298
  • Number of attempts: 3
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: #226 / 297
  • Number of attempts: 1
xrandr outputs and dashes - 657 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 / 215
  • Number of attempts: 2
Capitalize the Names - 372 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 / 93
  • Number of attempts: 12
Replace pattern with 1, 2, 3, ... on each line - 1106 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: #85 / 226
  • Number of attempts: 2
Hogwarts Email Sorting - 882 entries

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

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

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

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

Complete golang struct statement.

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

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #514 / 1258
  • Number of attempts: 5
prepend * to every non-blank line - 6245 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #747 / 1525
  • Number of attempts: 3
One number per line - 18635 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 27
  • Position: #3515 / 3847
  • Number of attempts: 2
Right Align Part of the line - 124 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: #21 / 41
  • Number of attempts: 3
Quote modules - 1060 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 22
  • Position: #79 / 276
  • Number of attempts: 5
Aliases for cd - 860 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 / 152
  • Number of attempts: 13
Quote modules (ver.2) - 214 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 23
  • Position: #23 / 57
  • Number of attempts: 3
Separate the lines - 175 entries

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

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

For the Citizen Hacks 2019 Vim competition.

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

Easy challenge.

  • Best score: 14
  • Best player score: 14
  • Position: #99 / 570
  • Number of attempts: 5
Unsemantic linewrapping - 895 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 / 225
  • 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: 12
  • Position: #24 / 843
  • Number of attempts: 3
Add string initializers to an enum - 862 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 22
  • Position: #100 / 254
  • Number of attempts: 2
SCREAMING_SNAKE_CASE to Title Case - 1195 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: #103 / 246
  • Number of attempts: 10
Add semicolons - 10806 entries

Simply add a semicolon at the end of each line

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

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

  • Best score: 18
  • Best player score: 19
  • Position: #218 / 517
  • Number of attempts: 4
remove lines containing the word "reader" - 3551 entries

easy stuff

  • Best score: 9
  • Best player score: 15
  • Position: #1073 / 1149
  • Number of attempts: 2
Com(m)a Trouble - 3690 entries

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

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

Extract wireshark capture filter from IP plan

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

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Position: #550 / 1867
  • Number of attempts: 4
Tables, Functions, Sprocs - 125 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: #35 / 44
  • Number of attempts: 2
Hash staircase - 48 entries

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

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

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Position: #121 / 228
  • Number of attempts: 1
multiple cursor alternative - 1474 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 / 376
  • Number of attempts: 5
From argument to object - 1475 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 / 451
  • Number of attempts: 2
Two pairs of cluster of letters creates word - 741 entries

Clean and group.

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

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #267 / 701
  • Number of attempts: 5
Convert Application Output to CSV - 191 entries

Change the application output to comma-separated values

  • Best score: 17
  • Best player score: 17
  • Position: #35 / 53
  • Number of attempts: 4
Preferably without multi-cursor plugin - 538 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: #38 / 127
  • Number of attempts: 3
Number Sort - 306 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 / 164
  • Number of attempts: 1
comment and uncomment code inline - 1071 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 / 315
  • Number of attempts: 3
Flip the bit - 123 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 9
  • Position: #43 / 72
  • Number of attempts: 2
Just the middle - 11367 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 12
  • Position: #4021 / 4166
  • Number of attempts: 1
Extract HTML option values from tag values - 98 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: #10 / 42
  • Number of attempts: 5
Team names - 1805 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #279 / 581
  • Number of attempts: 1
Learn some german verbs - 531 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 / 131
  • Number of attempts: 2
Todo list specification - 385 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: #149 / 176
  • Number of attempts: 1
Subnetting - 111 entries

Split up the IP addresses in the right way.

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

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

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

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #128 / 139
  • Number of attempts: 1
Turn a ninja to case-insensitive [Nn][Ii][Nn][Jj][Aa] regexp! - 63 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 / 37
  • Number of attempts: 2
Basic renumbering - 5591 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #240 / 1258
  • Number of attempts: 1
Simple addition - 310 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 / 117
  • Number of attempts: 2
Interactive git rebase changing commands - 161 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #57 / 77
  • Number of attempts: 2
create arrows in a list - 106 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 10
  • Position: #61 / 71
  • Number of attempts: 1
Adam's challenge - 957 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 / 266
  • Number of attempts: 4
Create a table - 331 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 - 840 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 / 287
  • Number of attempts: 3
Combines all items - 305 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 / 138
  • Number of attempts: 3
replace 2nd column blanks with values in same column if blank - 231 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: #40 / 81
  • Number of attempts: 3
ninja substitution - 1378 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 15
  • Position: #139 / 262
  • Number of attempts: 4
Vice versa - 7813 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1665 / 2106
  • Number of attempts: 2
Sort files from hosts - 179 entries

Resume files by host. I hope you enjoy with this challenge

  • Best score: 15
  • Best player score: 15
  • Position: #23 / 74
  • Number of attempts: 5
Order and join - 960 entries

There's something special about the input order.

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

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 11
  • Position: #86 / 165
  • Number of attempts: 3
Change attribute to getter - 133 entries

Wrap attributes with a getter method.

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

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 5
  • Position: #49 / 62
  • Number of attempts: 1
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: #314 / 664
  • Number of attempts: 5
Change part of a function name in multiple occurrences - 639 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: #124 / 203
  • Number of attempts: 1
citizen_hacks_2019_challenge5 - 138 entries

For the Citizen Hacks 2019 Vim competition.

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

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

  • Best score: 24
  • Best player score: 25
  • Position: #49 / 497
  • Number of attempts: 7
Build a six - 274 entries

Just enjoy building "a" floors...

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

Increment each number individually by one

  • Best score: 15
  • Best player score: 17
  • Position: #89 / 243
  • Number of attempts: 5
simple format (3) - 72 entries

reverse two column values!

  • Best score: 34
  • Best player score: 34
  • Position: #6 / 21
  • Number of attempts: 5
Around the clock - 188 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: #50 / 74
  • Number of attempts: 1
Join 'em - 250 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 4
  • Position: #18 / 150
  • Number of attempts: 1
Delete to the end of the current line - 792 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 / 386
  • Number of attempts: 2
Song Transcription Oops - 234 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 / 75
  • Number of attempts: 2
change parenthesis - 286 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 9
  • Position: #91 / 159
  • Number of attempts: 1
Label grid cells (6x6) - 45 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 / 17
  • Number of attempts: 8
Remove quotes after first field - 358 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #32 / 88
  • Number of attempts: 7
Put the months in order - 945 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 / 160
  • Number of attempts: 4
Reorder the groups - 1141 entries

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

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

had trouble with something similar

  • Best score: 19
  • Best player score: 20
  • Position: #29 / 135
  • Number of attempts: 3
Array transposition - 2387 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 16
  • Position: #46 / 444
  • Number of attempts: 11
convert yml into java pojo field - 836 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 / 224
  • Number of attempts: 3
unknown command - 165 entries

I want change 5 words

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

Convert to comma separated list.

  • Best score: 12
  • Best player score: 13
  • Position: #621 / 1187
  • Number of attempts: 1
I forgot quotes - 15935 entries

Oops.

  • Best score: 10
  • Best player score: 27
  • Position: #4032 / 4163
  • Number of attempts: 1
Words in parens - 12863 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #2991 / 3948
  • Number of attempts: 2
Resort and deup a CSV list - 142 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 / 39
  • Number of attempts: 5
If-then-else regexp - 43 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 / 11
  • Number of attempts: 4
ASCII-art Histogram - 311 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 / 56
  • Number of attempts: 7
Alphabet soup - 424 entries

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

  • Best score: 25
  • Best player score: 25
  • Position: #16 / 105
  • Number of attempts: 4
Shebangs for all - 1916 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 / 501
  • Number of attempts: 1
A Simple One - 1004 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 / 645
  • Number of attempts: 1
Reverse Simple Deletion - 832 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 15
  • Position: #423 / 454
  • Number of attempts: 2
Reverse characters in a line - 715 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: #86 / 252
  • Number of attempts: 1
Sort and add attributes - 1339 entries

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

  • Best score: 33
  • Best player score: 44
  • Position: #516 / 534
  • Number of attempts: 1
Simple text editing with Vim - 12360 entries

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

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

entered into 135 challenges

contributed 0 challenges