Played Challenges
Find fix point of cos - 1402 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: 17
- Position: #282 / 415
- Number of attempts: 1
Filter number combinations that don't add to 11 - 408 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: 29
- Position: #85 / 117
- Number of attempts: 2
Reformat symbols in list - 1621 entries
Saw this in some lecture, easy reformatting using multiple cursor in VS Code
- Best score: 24
- Best player score: 27
- Position: #127 / 348
- Number of attempts: 2
delete swap - 1786 entries
delete all swap
- Best score: 5
- Best player score: 5
- Position: #113 / 555
- Number of attempts: 1
Fix the shell script! - 2544 entries
Fix the shell script with the fewest keystrokes!
- Best score: 26
- Best player score: 33
- Position: #289 / 589
- Number of attempts: 1
Put a newline after every 10 lines in vim - 1657 entries
Goal is to put a newline after every 10 lines in vim.
- Best score: 10
- Best player score: 13
- Position: #363 / 556
- Number of attempts: 1
Wikitext headings to markdown - 987 entries
Convert the wikitext headings to markdown.
- Best score: 20
- Best player score: 20
- Position: #26 / 209
- Number of attempts: 4
hello-world-vimgolf - 2499 entries
Simple number generation
- Best score: 10
- Best player score: 10
- Position: #210 / 708
- Number of attempts: 2
Contribute to keyboard mashing - 890 entries
Speak in tongues
- Best score: 17
- Best player score: 20
- Position: #192 / 270
- Number of attempts: 2
Fill in the chess board - 959 entries
Fill in the name of each square using its file (a-h) and rank (1-8).
- Best score: 19
- Best player score: 25
- Position: #62 / 185
- Number of attempts: 1
simple replacements - 1753 entries
The goal is to see the replacement commands in action.
- Best score: 19
- Best player score: 19
- Position: #64 / 380
- Number of attempts: 5
Inverting Lines - 1900 entries
A simple challenge to invert all lines, except the first.
- Best score: 10
- Best player score: 13
- Position: #340 / 511
- Number of attempts: 2
Python dataclasses - 1136 entries
Simple challenge to extract fields from a Python class
- Best score: 19
- Best player score: 27
- Position: #164 / 284
- Number of attempts: 2
Making 3 line function a one liner. - 328 entries
Simple challenge for frequent action while programming.
- Best score: 4
- Best player score: 4
- Position: #103 / 205
- Number of attempts: 1
HS Final exam vimgolf - 897 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: #110 / 236
- Number of attempts: 1
Python: Def to Lambda - 455 entries
LAMBDA!!!
- Best score: 19
- Best player score: 22
- Position: #119 / 156
- Number of attempts: 2
Rural Post - 4479 entries
Simple challenge to remove all but the post code on each line
- Best score: 9
- Best player score: 10
- Position: #457 / 1097
- Number of attempts: 3
Satisfy the go linter - 2391 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: 28
- Position: #351 / 471
- Number of attempts: 1
xrandr outputs and dashes - 704 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: #131 / 221
- Number of attempts: 3
Yo To Hello - 1130 entries
Simply Turn Yo To Hello
- Best score: 10
- Best player score: 10
- Position: #370 / 524
- Number of attempts: 3
Simple, Practical, and Common - 33616 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: #2362 / 7420
- Number of attempts: 3
Hogwarts Email Sorting - 925 entries
Given a list of emails, get the students full name and their associated house.
- Best score: 20
- Best player score: 22
- Position: #172 / 261
- Number of attempts: 1
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: 16
- Position: #124 / 204
- Number of attempts: 1
Swap values - 4616 entries
Well, swap the values...
- Best score: 11
- Best player score: 15
- Position: #976 / 1268
- Number of attempts: 1
prepend * to every non-blank line - 6308 entries
Prepend an asterisk to every non-blank line in the input file.
- Best score: 10
- Best player score: 14
- Position: #907 / 1537
- Number of attempts: 1
citizen_hacks_2019_part1 - 54 entries
For the Citizen Hacks 2019 Vim competition
- Best score: 52
- Best player score: 58
- Position: #12 / 17
- Number of attempts: 2
citizen_hacks_2019_challenge2 - 195 entries
For the Citizen Hacks 2019 Vim competition.
- Best score: 6
- Best player score: 6
- Position: #60 / 102
- Number of attempts: 1
Swap values inside brackets - 2496 entries
Easy challenge.
- Best score: 14
- Best player score: 17
- Position: #316 / 579
- Number of attempts: 4
Unsemantic linewrapping - 928 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: 15
- Position: #209 / 231
- Number of attempts: 1
Applying same text modification in several lines - 2880 entries
Remove identical text at the beginning of several lines and the closing parenthesis.
- Best score: 12
- Best player score: 13
- Position: #266 / 851
- Number of attempts: 5
Add string initializers to an enum - 872 entries
Change Typescript enum so that it has string initializers.
- Best score: 21
- Best player score: 27
- Position: #196 / 258
- Number of attempts: 1
Swap the operands under comparison - 297 entries
Swap the operands under comparison to prevent null pointer exception (at least in java)
- Best score: 19
- Best player score: 23
- Position: #59 / 101
- Number of attempts: 1
Add semicolons - 10852 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 11
- Position: #1758 / 3063
- Number of attempts: 2
remove lines containing the word "reader" - 3586 entries
easy stuff
- Best score: 9
- Best player score: 9
- Position: #486 / 1162
- Number of attempts: 4
citizen_hacks_2019_challenge3 - 38 entries
For the Citizen Hacks 2019 Vim competition.
- Best score: 4
- Best player score: 4
- Position: #26 / 35
- Number of attempts: 1
multiple cursor alternative - 1519 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: 22
- Position: #239 / 380
- Number of attempts: 1
From argument to object - 1508 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: 20
- Position: #347 / 458
- Number of attempts: 1
Copy three lines - 2872 entries
If the site is up (by some miracle), make the text under every header identical.
- Best score: 13
- Best player score: 20
- Position: #425 / 640
- Number of attempts: 3
Array propagate - 338 entries
Complete the array with the keys as part of the value
- Best score: 23
- Best player score: 27
- Position: #63 / 119
- Number of attempts: 1
Search and Replace 0 - 4989 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #702 / 1624
- Number of attempts: 1
Number Sort - 314 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: #130 / 166
- Number of attempts: 2
comment and uncomment code inline - 1122 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: 10
- Position: #216 / 322
- Number of attempts: 2
Make HTML List - 1050 entries
Turn the comma separated list into an unordered html list.
- Best score: 33
- Best player score: 41
- Position: #109 / 273
- Number of attempts: 3
Todo list specification - 399 entries
The every item on the todo list must be done today. Modify the list to reflect that.
- Best score: 37
- Best player score: 37
- Position: #94 / 179
- Number of attempts: 3
Python Hello World! Reformatting - 994 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: #255 / 380
- Number of attempts: 1
Remember VimGolf Rules ! - 261 entries
Rules, ... and don't forget !
- Best score: 7
- Best player score: 8
- Position: #124 / 141
- Number of attempts: 2
Missing Library and a Typo - 887 entries
I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.
- Best score: 14
- Best player score: 22
- Position: #180 / 213
- Number of attempts: 2
Simple addition - 326 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: #55 / 122
- Number of attempts: 1
Adam's challenge - 984 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: 21
- Position: #165 / 270
- Number of attempts: 1
Fiddle percentages into real numbers - 865 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: #155 / 291
- Number of attempts: 3
Add to end of each line... kinda - 333 entries
Visual-block mode can be used to add something to the end of each line, even if they are of differing lengths. However, what if it's not quite at the end?
- Best score: 12
- Best player score: 13
- Position: #155 / 174
- Number of attempts: 1
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: 11
- Position: #136 / 140
- Number of attempts: 2
underscore_to_camelCase - 173 entries
Pointy haired boss decided we need to switch to camelCase. Let's get this over with.
- Best score: 14
- Best player score: 15
- Position: #58 / 82
- Number of attempts: 1
7th Birthday - 202 entries
We have a bunch of numbers written from 0 to 9 in the order present in the text input file. The task is to create 7 by replacing the numbers with dashes.
- Best score: 19
- Best player score: 23
- Position: #45 / 75
- Number of attempts: 1
citizen_hacks_2019_challenge4 - 95 entries
For the Citizen Hacks 2019 Vim competition.
- Best score: 5
- Best player score: 5
- Position: #44 / 65
- Number of attempts: 1
Generate a list of numbers - 295 entries
Please generate list of numbers from 1 to 20.
- Best score: 14
- Best player score: 14
- Position: #64 / 140
- Number of attempts: 2
One to Ten - 2219 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: #346 / 672
- Number of attempts: 1
Change part of a function name in multiple occurrences - 662 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: #125 / 208
- Number of attempts: 2
citizen_hacks_2019_challenge5 - 147 entries
For the Citizen Hacks 2019 Vim competition.
- Best score: 6
- Best player score: 6
- Position: #42 / 77
- Number of attempts: 1
citizen_hacks_2019_challenge6 - 65 entries
For the Citizen Hacks 2019 Vim competition.
- Best score: 3
- Best player score: 3
- Position: #40 / 51
- Number of attempts: 1
Delete to the end of the current line - 812 entries
Delete to the end of the current line, but keep the character under the cursor.
- Best score: 5
- Best player score: 5
- Position: #247 / 391
- 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: #86 / 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: 48
- Position: #14 / 20
- Number of attempts: 1
convert yml into java pojo field - 857 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: 31
- Position: #147 / 227
- Number of attempts: 2
Collect List - 4298 entries
Convert to comma separated list.
- Best score: 12
- Best player score: 16
- Position: #876 / 1190
- Number of attempts: 3
VimGolfNight - 560 entries
Based on "The name of the game".
- Best score: 12
- Best player score: 12
- Position: #282 / 347
- Number of attempts: 1
camel riding - 793 entries
add a prefix on some camelCase variables
- Best score: 15
- Best player score: 17
- Position: #196 / 281
- Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10663 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 12
- Position: #2504 / 3683
- Number of attempts: 1
quotes inside quotes - 3159 entries
taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)
- Best score: 14
- Best player score: 14
- Position: #352 / 1078
- Number of attempts: 3
Words in parens - 12935 entries
We should all ace this, right?
- Best score: 13
- Best player score: 13
- Position: #9 / 3963
- Number of attempts: 3
NATO phonetic alphabet - 529 entries
Transform the series of words into a list.
- Best score: 19
- Best player score: 20
- Position: #59 / 196
- Number of attempts: 3
A simple change - 461 entries
Just change the numbers in the most efficient way ...
- Best score: 12
- Best player score: 14
- Position: #129 / 191
- Number of attempts: 1
The name of the game - 665 entries
End up with the name of the game.
- Best score: 11
- Best player score: 11
- Position: #270 / 360
- Number of attempts: 1
SFD-ROC: vimvimvim - 1606 entries
Oh no, this line is longer than 80 chars... put each 'vim' on a new line.
- Best score: 8
- Best player score: 15
- Position: #416 / 446
- Number of attempts: 1
Stairs Indenting - 473 entries
Indent each line with <line number> whitespaces.
- Best score: 12
- Best player score: 13
- Position: #59 / 197
- Number of attempts: 2
Let's play some Ivmgolf - 1118 entries
Oops, I spelled that wrong.
- Best score: 7
- Best player score: 7
- Position: #132 / 445
- Number of attempts: 3
citizen_hacks_2019_challenge1 - 51 entries
For the Citizen Hacks 2019 Vim competition
- Best score: 5
- Best player score: 5
- Position: #30 / 45
- Number of attempts: 1
you're stuck on jQuery < 1.7 - 362 entries
replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`
- Best score: 25
- Best player score: 28
- Position: #52 / 113
- Number of attempts: 2
Vertical Limit - 2538 entries
transform a succession of one word lines to a an array of strings
- Best score: 21
- Best player score: 28
- Position: #605 / 754
- Number of attempts: 2
Switch function arguments - 2139 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 11
- Position: #186 / 663
- Number of attempts: 4
Append semicolon after expressions - 1056 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 12
- Position: #261 / 419
- Number of attempts: 2
Reverse and double space - 500 entries
Reverse the order of the given lines and double space everything
- Best score: 14
- Best player score: 19
- Position: #178 / 199
- Number of attempts: 1
Remove semicolons after expressions - 654 entries
A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.
- Best score: 6
- Best player score: 6
- Position: #127 / 263
- Number of attempts: 1
switch variable - 5071 entries
how fast can you switch two variable ?
- Best score: 11
- Best player score: 11
- Position: #656 / 1748
- Number of attempts: 6
The meaning - 575 entries
Numbers are fun!
- Best score: 5
- Best player score: 5
- Position: #305 / 363
- Number of attempts: 2
Line Zipper - 473 entries
Zip/pair related lines.
- Best score: 12
- Best player score: 16
- Position: #195 / 215
- Number of attempts: 2
A Simple One - 1050 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: #551 / 664
- Number of attempts: 1
Ruby 1.9 compat - 629 entries
Remember when Ruby supported `when <expr> :`? Well, it doesn't in 1.9, so let's make sure we use `then`, without ruining our lovely new hash syntax!
- Best score: 14
- Best player score: 15
- Position: #119 / 234
- Number of attempts: 1
Reverse Simple Deletion - 847 entries
You did the simple deletion, now reverse it.
- Best score: 11
- Best player score: 12
- Position: #365 / 458
- Number of attempts: 2
Increment, increment, increment.... - 688 entries
Vim likes macros
- Best score: 10
- Best player score: 10
- Position: #53 / 408
- Number of attempts: 1
Hatsuyume - 532 entries
http://en.wikipedia.org/wiki/Hatsuyume
- Best score: 15
- Best player score: 18
- Position: #28 / 186
- Number of attempts: 1
The Cake is a Lie - 1346 entries
Correct the capitalization of each word
- Best score: 9
- Best player score: 9
- Position: #271 / 527
- Number of attempts: 2
Context insensitive completion 0 - 577 entries
Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.
- Best score: 6
- Best player score: 7
- Position: #117 / 246
- Number of attempts: 2
Context Insensitive completion 1 - 498 entries
Finish writing this simple Python HTTP server.
- Best score: 18
- Best player score: 18
- Position: #153 / 245
- Number of attempts: 1
Make Fancy Header - 1052 entries
Make the header text stand out with surrounding asterisks
- Best score: 15
- Best player score: 21
- Position: #263 / 344
- Number of attempts: 1
Reverse characters in a line - 771 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: 24
- Position: #230 / 265
- Number of attempts: 1
Change the content of a string - 1580 entries
This docstring is a complete lie. Fix it.
- Best score: 22
- Best player score: 23
- Position: #317 / 588
- Number of attempts: 1
Simple text editing with Vim - 12811 entries
Make the pairs of lines match up by making each second line same as first
- Best score: 13
- Best player score: 20
- Position: #2832 / 3694
- Number of attempts: 2