Played Challenges
Many duplicates - 1489 entries
Quick and easy
- Best score: 7
- Best player score: 8
- Position: #171 / 484
- Number of attempts: 2
2 quick changes and a numbered list - 661 entries
The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.
- Best score: 37
- Best player score: 59
- Position: #110 / 157
- Number of attempts: 2
Put a newline after every 10 lines in vim - 1688 entries
Goal is to put a newline after every 10 lines in vim.
- Best score: 10
- Best player score: 13
- Position: #377 / 567
- Number of attempts: 1
hello-world-vimgolf - 2535 entries
Simple number generation
- Best score: 6
- Best player score: 13
- Position: #503 / 728
- Number of attempts: 2
Contribute to keyboard mashing - 913 entries
Speak in tongues
- Best score: 17
- Best player score: 20
- Position: #198 / 277
- Number of attempts: 1
Inverting Lines - 1962 entries
A simple challenge to invert all lines, except the first.
- Best score: 10
- Best player score: 13
- Position: #351 / 527
- Number of attempts: 1
swap number pairs - 2174 entries
Swap the numbers in a bunch of 2-element arrays.
- Best score: 7
- Best player score: 22
- Position: #168 / 395
- Number of attempts: 1
Python: Def to Lambda - 492 entries
LAMBDA!!!
- Best score: 19
- Best player score: 23
- Position: #137 / 162
- Number of attempts: 1
Yo To Hello - 1156 entries
Simply Turn Yo To Hello
- Best score: 8
- Best player score: 10
- Position: #373 / 537
- Number of attempts: 3
V to the i - 4890 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 8
- Position: #1499 / 1917
- Number of attempts: 1
Wrap the text of an email message to 79 characters - 885 entries
You're replying to an email with silly long lines. Clean them up.
- Best score: 5
- Best player score: 5
- Position: #277 / 458
- Number of attempts: 1
comment and uncomment code inline - 1183 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: 12
- Position: #280 / 333
- Number of attempts: 1
Just the middle - 11636 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 8
- Position: #3196 / 4262
- Number of attempts: 2
For all cases. - 180 entries
In this case... change it! :) Watch the line.
- Best score: 8
- Best player score: 8
- Position: #82 / 111
- Number of attempts: 1
create arrows in a list - 146 entries
Add arrow at same distance
- Best score: 10
- Best player score: 10
- Position: #59 / 81
- Number of attempts: 2
Adam's challenge - 1043 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: 23
- Position: #235 / 281
- Number of attempts: 1
Add to end of each line... kinda - 352 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: #160 / 182
- Number of attempts: 1
Combines all items - 325 entries
For each line that starts with the same number I want to combine its contents
- Best score: 9
- Best player score: 10
- Position: #131 / 144
- Number of attempts: 1
Fun With The Diagonal - 116 entries
change the lowercase characters on the main diagonal to uppercase
- Best score: 11
- Best player score: 11
- Position: #74 / 86
- Number of attempts: 1
Vice versa - 8021 entries
Little role switching.
- Best score: 12
- Best player score: 15
- Position: #1129 / 2158
- Number of attempts: 2
Free hyphen! - 199 entries
Just like "Inner hyphens", but I'm giving you a free hyphen to play with. Will your solution be any different?
- Best score: 9
- Best player score: 11
- Position: #91 / 97
- Number of attempts: 1
comments galore - 1101 entries
Basic comment reformatting
- Best score: 10
- Best player score: 10
- Position: #298 / 433
- Number of attempts: 1
A grid of punctuation - 156 entries
Create a checkerboard of = and - in an 80×24 grid!
- Best score: 16
- Best player score: 19
- Position: #50 / 65
- Number of attempts: 2
ASCII Art - 92 entries
how good are you with simple regex?
- Best score: 10
- Best player score: 14
- Position: #44 / 58
- Number of attempts: 1
Delete to the end of the current line - 901 entries
Delete to the end of the current line, but keep the character under the cursor.
- Best score: 5
- Best player score: 6
- Position: #366 / 435
- Number of attempts: 1
VimGolfNight - 604 entries
Based on "The name of the game".
- Best score: 12
- Best player score: 12
- Position: #284 / 357
- Number of attempts: 1
camel riding - 817 entries
add a prefix on some camelCase variables
- Best score: 15
- Best player score: 17
- Position: #201 / 285
- Number of attempts: 2
Condensed Cases - 829 entries
Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.
- Best score: 12
- Best player score: 15
- Position: #180 / 255
- Number of attempts: 1
-a-b-c- - 3243 entries
Put hyphens everywhere.
- Best score: 6
- Best player score: 16
- Position: #885 / 1148
- Number of attempts: 1
Change name of a variable - 197 entries
Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.
- Best score: 9
- Best player score: 9
- Position: #124 / 148
- Number of attempts: 1
120 Degrees - 518 entries
Rotate that triangle.
- Best score: 14
- Best player score: 21
- Position: #97 / 148
- Number of attempts: 2
Where should I put the Newline? - 916 entries
Help me put the newline.
- Best score: 7
- Best player score: 8
- Position: #412 / 453
- Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10757 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 12
- Position: #2523 / 3717
- Number of attempts: 1
Untangle my tail, please! - 76 entries
You know, this words were playing to chase their tails and Oops! What happened? Now we have a complete mess, their tails are totally tangled, can you please help them to untangle their tails?
- Best score: 16
- Best player score: 17
- Position: #24 / 37
- Number of attempts: 3
Delete unwanted lines - 452 entries
Delete all lines which does not end in "o.."
- Best score: 9
- Best player score: 9
- Position: #191 / 238
- Number of attempts: 1
Word frequency alignment - 310 entries
You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...
- Best score: 5
- Best player score: 5
- Position: #115 / 166
- Number of attempts: 2
Block Fun 1 - 246 entries
Manipulate the columns to produce desired result.
- Best score: 14
- Best player score: 24
- Position: #63 / 80
- Number of attempts: 1
abcd > a b c d - 310 entries
transform the single spaces into 4 spaces repeat for each line
- Best score: 15
- Best player score: 15
- Position: #194 / 232
- Number of attempts: 1
A simple change - 486 entries
Just change the numbers in the most efficient way ...
- Best score: 12
- Best player score: 14
- Position: #134 / 200
- Number of attempts: 3
Unwrap the text of an email message - 203 entries
Reverse of "Wrap the text of an email message to 79 characters". gq and gw are great for wrapping paragraphs. But sometimes other programs choke on your wrapped lines. What's the best way to un-gq?
- Best score: 16
- Best player score: 16
- Position: #33 / 78
- Number of attempts: 4
Let's play some Ivmgolf - 1167 entries
Oops, I spelled that wrong.
- Best score: 7
- Best player score: 7
- Position: #135 / 462
- Number of attempts: 2
Append semicolon after expressions - 1088 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 11
- Position: #136 / 427
- Number of attempts: 3
A Simple One - 1096 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: #555 / 683
- Number of attempts: 1
82 bottles of beer on the wall - 330 entries
Take them down. (sorry, only 82 bottles because the problem size is limited!)
- Best score: 106
- Best player score: 124
- Position: #55 / 150
- Number of attempts: 2
Dumb to smart - 116 entries
Turn dumb quote to smart vim's way.
- Best score: 27
- Best player score: 33
- Position: #35 / 60
- Number of attempts: 1
Context insensitive completion 0 - 611 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: #119 / 258
- Number of attempts: 3
Almost encrypted - 212 entries
Convert the first paragraph to be even less readable.
- Best score: 5
- Best player score: 5
- Position: #122 / 150
- Number of attempts: 1
James Marshall
Twitter: @astrophd
Astronomer working with Earth science data systems at GSFC. Posts are my own; I am *not* an official representative of NASA, etc. Personal-type posts @Dronak
VimGolf