Played Challenges
HS exam question - 1124 entries
Convert the data to a python dictionary
- Best score: 47
- Best player score: 50
- Position: #39 / 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: #13 / 233
- Number of attempts: 5
Fizzbuzz - 343 entries
type the first 100 lines of the fizzbuzz problem
- Best score: 47
- Best player score: 61
- Position: #31 / 110
- Number of attempts: 1
Substraction (bis) - 383 entries
Solve the equations (adapted from the original @Caek_'s challenge).
- Best score: 22
- Best player score: 36
- Position: #57 / 80
- Number of attempts: 3
Changing around text with citations - 197 entries
Based off of something I saw on reddit
- Best score: 28
- Best player score: 33
- Position: #21 / 60
- Number of attempts: 2
Poorly indented Python comments - 866 entries
Fix the alignment of some Python comments as quickly as possible.
- Best score: 15
- Best player score: 33
- Position: #93 / 168
- Number of attempts: 4
Many duplicates - 851 entries
Quick and easy
- Best score: 7
- Best player score: 8
- Position: #28 / 287
- 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: 45
- Position: #56 / 108
- Number of attempts: 2
delete swap - 1095 entries
delete all swap
- Best score: 5
- Best player score: 5
- Position: #23 / 356
- Number of attempts: 3
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: #33 / 207
- Number of attempts: 3
Fix the shell script! - 1728 entries
Fix the shell script with the fewest keystrokes!
- Best score: 26
- Best player score: 38
- Position: #264 / 418
- Number of attempts: 1
Visual block training - 780 entries
You see the input. You see the output. Go.
- Best score: 17
- Best player score: 34
- Position: #71 / 146
- Number of attempts: 3
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: #121 / 458
- Number of attempts: 4
Wikitext headings to markdown - 781 entries
Convert the wikitext headings to markdown.
- Best score: 20
- Best player score: 29
- Position: #106 / 172
- Number of attempts: 1
hello-world-vimgolf - 1981 entries
Simple number generation
- Best score: 10
- Best player score: 10
- Position: #200 / 564
- Number of attempts: 5
Contribute to keyboard mashing - 745 entries
Speak in tongues
- Best score: 17
- Best player score: 17
- Position: #41 / 230
- Number of attempts: 4
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: #22 / 155
- Number of attempts: 5
Learn to ask for :help - 461 entries
Learn to use the help to reduce your strokes...
- Best score: 19
- Best player score: 32
- Position: #60 / 107
- Number of attempts: 3
Lowercase first characters - 421 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: #26 / 152
- Number of attempts: 2
simple replacements - 1264 entries
The goal is to see the replacement commands in action.
- Best score: 19
- Best player score: 19
- Position: #62 / 283
- Number of attempts: 11
Inverting Lines - 1562 entries
A simple challenge to invert all lines, except the first.
- Best score: 10
- Best player score: 10
- Position: #164 / 423
- Number of attempts: 2
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: 45
- Position: #34 / 85
- Number of attempts: 2
Python dataclasses - 796 entries
Simple challenge to extract fields from a Python class
- Best score: 19
- Best player score: 19
- Position: #46 / 204
- Number of attempts: 5
RUST Cargo.toml version to last - 283 entries
RUST Cargo.toml version to last. rusty practice on vimgolf
- Best score: 16
- Best player score: 16
- Position: #17 / 80
- Number of attempts: 6
Making 3 line function a one liner. - 237 entries
Simple challenge for frequent action while programming.
- Best score: 4
- Best player score: 4
- Position: #90 / 157
- Number of attempts: 1
Modernise code - 1103 entries
Modernise and clean up some C++ code.
- Best score: 34
- Best player score: 35
- Position: #78 / 261
- Number of attempts: 5
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: 24
- Position: #34 / 67
- Number of attempts: 5
Put a cross in the square - 175 entries
Put a cross in the square
- Best score: 20
- Best player score: 20
- Position: #9 / 76
- Number of attempts: 4
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: 21
- Position: #25 / 215
- Number of attempts: 3
Mr. Hacker - 76 entries
Elvin is hacker. He has piece of users database from some social net site. Recently he installed Vim, and he wants to convert CSV DB to specific format `key=value' where `key' is login and `value' is password, but password in DB is encrypted in ROT13. Help him.
- Best score: 19
- Best player score: 19
- Position: #13 / 31
- Number of attempts: 5
Python: Def to Lambda - 410 entries
LAMBDA!!!
- Best score: 19
- Best player score: 19
- Position: #73 / 142
- Number of attempts: 5
Turn the x - 275 entries
Turn the x to a +
- Best score: 19
- Best player score: 19
- Position: #17 / 71
- Number of attempts: 8
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: 55
- Position: #33 / 40
- Number of attempts: 2
Rural Post - 4254 entries
Simple challenge to remove all but the post code on each line
- Best score: 9
- Best player score: 9
- Position: #182 / 1044
- Number of attempts: 4
Levenshtein distance - 88 entries
Compute distance for each pair. Notice that this recursive implementation is very inefficient. Wagner-Fischer algorithm is iterative and much faster. #vimscript
- Best score: 28
- Best player score: 30
- Position: #6 / 31
- 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: #142 / 422
- Number of attempts: 6
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: #80 / 267
- Number of attempts: 3
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: #204 / 260
- Number of attempts: 1
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: #130 / 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: 29
- Position: #139 / 160
- Number of attempts: 1
Yo To Hello - 1081 entries
Simply Turn Yo To Hello
- Best score: 10
- Best player score: 10
- Position: #365 / 497
- Number of attempts: 2
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: 35
- Position: #161 / 214
- Number of attempts: 1
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: #2358 / 7308
- Number of attempts: 6
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: 21
- Position: #97 / 247
- Number of attempts: 3
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: #77 / 190
- Number of attempts: 2
Reconstruct the actual output from my unit test tool report - 138 entries
When a test fails, my unit test tool reports differences between the actual output and the expected output as follow: - line in the expected output but missing in the actual output are prefixed with a dash - unexpected lines in the actual output are prefixed with a plus sign - comments added by the unit test tool are prefixed with a question mark - common lines are showed `as-is` (well, almost;) From that "diff" format, I would like to reconstruct the actual output.
- Best score: 16
- Best player score: 17
- Position: #34 / 48
- Number of attempts: 2
Add text at some column - 147 entries
Complete golang struct statement.
- Best score: 31
- Best player score: 31
- Position: #19 / 56
- Number of attempts: 2
Swap values - 4500 entries
Well, swap the values...
- Best score: 11
- Best player score: 15
- Position: #960 / 1247
- Number of attempts: 3
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: #423 / 1493
- Number of attempts: 3
One number per line - 18497 entries
Just give me the numbers.
- Best score: 14
- Best player score: 19
- Position: #1993 / 3815
- Number of attempts: 4
Right Align Part of the line - 101 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: #19 / 32
- Number of attempts: 5
Quote modules - 1024 entries
Complete golang import statement.
- Best score: 21
- Best player score: 24
- Position: #104 / 263
- Number of attempts: 3
Quote modules (ver.2) - 197 entries
Complete golang import statement.
- Best score: 22
- Best player score: 32
- Position: #48 / 53
- Number of attempts: 1
Separate the lines - 171 entries
Every other line is mixed up. Separate them into their original texts.
- Best score: 11
- Best player score: 11
- Position: #56 / 87
- Number of attempts: 4
citizen_hacks_2019_challenge2 - 185 entries
For the Citizen Hacks 2019 Vim competition.
- Best score: 6
- Best player score: 6
- Position: #59 / 95
- Number of attempts: 1
Swap values inside brackets - 2442 entries
Easy challenge.
- Best score: 14
- Best player score: 18
- Position: #346 / 565
- Number of attempts: 2
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: 9
- Position: #95 / 218
- Number of attempts: 6
V to the i - 4651 entries
Input is 99 V's. Output is 100 i's.
- Best score: 7
- Best player score: 7
- Position: #781 / 1864
- Number of attempts: 2
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: 12
- Position: #15 / 827
- Number of attempts: 8
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: #68 / 246
- Number of attempts: 4
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: 19
- Position: #58 / 235
- Number of attempts: 3
Swap the operands under comparison - 266 entries
Swap the operands under comparison to prevent null pointer exception (at least in java)
- Best score: 19
- Best player score: 19
- Position: #24 / 96
- Number of attempts: 4
Add semicolons - 10720 entries
Simply add a semicolon at the end of each line
- Best score: 10
- Best player score: 10
- Position: #737 / 3023
- Number of attempts: 2
Split line with dots - 2113 entries
This line is too long, split it.
- Best score: 15
- Best player score: 24
- Position: #506 / 625
- Number of attempts: 1
remove lines containing the word "reader" - 3483 entries
easy stuff
- Best score: 9
- Best player score: 9
- Position: #485 / 1128
- Number of attempts: 1
Com(m)a Trouble - 3511 entries
Someone was real stupid when placing his commas. Can you fix it?
- Best score: 12
- Best player score: 13
- Position: #320 / 789
- Number of attempts: 3
citizen_hacks_2019_challenge3 - 32 entries
For the Citizen Hacks 2019 Vim competition.
- Best score: 4
- Best player score: 4
- Position: #25 / 29
- Number of attempts: 1
Extract wireshark capture filter - 193 entries
Extract wireshark capture filter from IP plan
- Best score: 25
- Best player score: 30
- Position: #44 / 64
- Number of attempts: 2
Box it - 7756 entries
Create a box around a line.
- Best score: 21
- Best player score: 21
- Position: #445 / 1847
- Number of attempts: 2
Tables, Functions, Sprocs - 121 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: #33 / 42
- Number of attempts: 3
Triangular Numbers - 88 entries
Generate the first 50 triangular numbers.
- Best score: 18
- Best player score: 18
- Position: #17 / 25
- Number of attempts: 6
Two pairs of cluster of letters creates word - 719 entries
Clean and group.
- Best score: 17
- Best player score: 20
- Position: #106 / 170
- Number of attempts: 1
Every other line - 2856 entries
AaAaAaA
- Best score: 12
- Best player score: 14
- Position: #291 / 691
- 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: #181 / 630
- Number of attempts: 8
Convert Application Output to CSV - 180 entries
Change the application output to comma-separated values
- Best score: 17
- Best player score: 20
- Position: #45 / 50
- Number of attempts: 2
Extract argument from function - 2269 entries
The aim is to see if you can do some refactoring very fast.
- Best score: 13
- Best player score: 13
- Position: #262 / 737
- Number of attempts: 3
Start coding format - 136 entries
I used to start coding with following format: int main(){ -(cursor here) }
- Best score: 22
- Best player score: 22
- Position: #31 / 66
- Number of attempts: 4
Search and Replace 0 - 4749 entries
Replace every instance of 'aaa' with 'xaaax'.
- Best score: 12
- Best player score: 12
- Position: #695 / 1574
- Number of attempts: 3
Preferably without multi-cursor plugin - 527 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: #36 / 124
- Number of attempts: 5
Number Sort - 299 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: #127 / 159
- Number of attempts: 2
comment and uncomment code inline - 1037 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: #148 / 305
- Number of attempts: 6
Flip the bit - 115 entries
Change the specific 0 to a 1.
- Best score: 8
- Best player score: 8
- Position: #34 / 67
- Number of attempts: 3
Just the middle - 11289 entries
Delete the instructions at the top and bottom.
- Best score: 7
- Best player score: 7
- Position: #1481 / 4144
- Number of attempts: 4
Learn some german verbs - 527 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: 22
- Position: #63 / 129
- Number of attempts: 3
Todo list specification - 373 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: #93 / 170
- Number of attempts: 2
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: 31
- Position: #3 / 17
- Number of attempts: 1
For all cases. - 131 entries
In this case... change it! :) Watch the line.
- Best score: 8
- Best player score: 8
- Position: #80 / 94
- Number of attempts: 1
Remember VimGolf Rules ! - 247 entries
Rules, ... and don't forget !
- Best score: 7
- Best player score: 8
- Position: #121 / 132
- Number of attempts: 1
Stairstep digits - 366 entries
Remove the evens. Double the odds.
- Best score: 9
- Best player score: 13
- Position: #113 / 137
- Number of attempts: 5
Back to the roots - 47 entries
Johnny has a file with more integers. He wants to change each number with its square root. Can you help him?
- Best score: 23
- Best player score: 23
- Position: #27 / 33
- Number of attempts: 1
Turn a ninja to case-insensitive [Nn][Ii][Nn][Jj][Aa] regexp! - 55 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: #26 / 33
- Number of attempts: 2
Basic renumbering - 5489 entries
Renumbering Basic.
- Best score: 11
- Best player score: 11
- Position: #261 / 1245
- Number of attempts: 6
Simple addition - 301 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: #56 / 112
- Number of attempts: 2
create arrows in a list - 92 entries
Add arrow at same distance
- Best score: 10
- Best player score: 10
- Position: #56 / 65
- Number of attempts: 2
Create a table - 309 entries
Convert the given input into a formatted table
- Best score: 16
- Best player score: 16
- Position: #47 / 100
- Number of attempts: 4
Fiddle percentages into real numbers - 825 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: #153 / 281
- Number of attempts: 2
Nesting SASS - 257 entries
Move a block inside another block and indent it
- Best score: 9
- Best player score: 9
- Position: #44 / 91
- Number of attempts: 7
Add to end of each line... kinda - 313 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: 12
- Position: #100 / 164
- Number of attempts: 3
Combines all items - 292 entries
For each line that starts with the same number I want to combine its contents
- Best score: 9
- Best player score: 9
- Position: #80 / 132
- Number of attempts: 5
replace 2nd column blanks with values in same column if blank - 226 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: #37 / 78
- Number of attempts: 1
Wrap text in quotes - 348 entries
All the blocks of text should be wrapped in quotation marks.
- Best score: 16
- Best player score: 16
- Position: #46 / 119
- Number of attempts: 6
Fun With The Diagonal - 99 entries
change the lowercase characters on the main diagonal to uppercase
- Best score: 11
- Best player score: 11
- Position: #72 / 76
- Number of attempts: 1
ninja substitution - 1336 entries
How can you reuse a previous substitution ?
- Best score: 14
- Best player score: 15
- Position: #133 / 255
- Number of attempts: 2
Pretty multi-line bash - 218 entries
Bash line continuations are much prettier when they're column aligned.
- Best score: 15
- Best player score: 27
- Position: #54 / 75
- Number of attempts: 3
Free hyphen! - 156 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: 9
- Position: #30 / 84
- Number of attempts: 4
Paragraph sort - 421 entries
My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.
- Best score: 14
- Best player score: 14
- Position: #43 / 122
- Number of attempts: 5
Triangle of arrows - 144 entries
I made this by accident when working on another challenge. How would you go about making this?
- Best score: 14
- Best player score: 25
- Position: #26 / 35
- Number of attempts: 2
Vim's not included features - 183 entries
Filter not included (-) features in a hypothetical installation of vim.
- Best score: 23
- Best player score: 24
- Position: #9 / 59
- Number of attempts: 10
Sorting a glossary - 116 entries
Sort a glossary. Glossary head contains a header phrase ending with ':' and glossary body has multi line text indented with a tab.
- Best score: 6
- Best player score: 6
- Position: #67 / 75
- Number of attempts: 2
Sort files from hosts - 167 entries
Resume files by host. I hope you enjoy with this challenge
- Best score: 15
- Best player score: 15
- Position: #21 / 70
- Number of attempts: 3
Order and join - 913 entries
There's something special about the input order.
- Best score: 10
- Best player score: 11
- Position: #135 / 248
- Number of attempts: 4
Paragraph breaks - 497 entries
Swap the blank lines and the aaa lines.
- Best score: 10
- Best player score: 12
- Position: #89 / 163
- Number of attempts: 3
comments galore - 982 entries
Basic comment reformatting
- Best score: 10
- Best player score: 11
- Position: #361 / 414
- Number of attempts: 3
Angular naming conventions - 285 entries
In angular, a directive name follows the camelCase convention. When the directive is used in an HTML template, the words are instead separated by a dash. Go from to the other the fastest!
- Best score: 18
- Best player score: 19
- Position: #59 / 111
- Number of attempts: 3
Change attribute to getter - 127 entries
Wrap attributes with a getter method.
- Best score: 24
- Best player score: 25
- Position: #40 / 53
- Number of attempts: 3
A grid of punctuation - 120 entries
Create a checkerboard of = and - in an 80×24 grid!
- Best score: 16
- Best player score: 19
- Position: #42 / 56
- Number of attempts: 1
citizen_hacks_2019_challenge4 - 82 entries
For the Citizen Hacks 2019 Vim competition.
- Best score: 5
- Best player score: 5
- Position: #43 / 56
- Number of attempts: 1
Generate a list of numbers - 282 entries
Please generate list of numbers from 1 to 20.
- Best score: 14
- Best player score: 14
- Position: #62 / 135
- Number of attempts: 1
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: #345 / 650
- Number of attempts: 2
Change part of a function name in multiple occurrences - 612 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: 14
- Position: #64 / 197
- Number of attempts: 6
citizen_hacks_2019_challenge5 - 129 entries
For the Citizen Hacks 2019 Vim competition.
- Best score: 6
- Best player score: 6
- Position: #41 / 69
- Number of attempts: 1
Increment each number - 959 entries
Increment each number individually by one
- Best score: 15
- Best player score: 17
- Position: #85 / 238
- Number of attempts: 5
Around the clock - 186 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: 13
- Position: #35 / 72
- Number of attempts: 3
citizen_hacks_2019_challenge6 - 55 entries
For the Citizen Hacks 2019 Vim competition.
- Best score: 3
- Best player score: 3
- Position: #39 / 44
- Number of attempts: 1
Join 'em - 238 entries
This shouldn't be too tough
- Best score: 4
- Best player score: 4
- Position: #12 / 141
- Number of attempts: 1
Delete to the end of the current line - 723 entries
Delete to the end of the current line, but keep the character under the cursor.
- Best score: 5
- Best player score: 5
- Position: #246 / 355
- Number of attempts: 2
Song Transcription Oops - 227 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: #54 / 72
- Number of attempts: 2
change parenthesis - 267 entries
change the pair of braces into a pair of parentheses
- Best score: 9
- Best player score: 9
- Position: #85 / 151
- Number of attempts: 2
Remove quotes after first field - 332 entries
Remove the quotes around each field except for the first field.
- Best score: 16
- Best player score: 16
- Position: #30 / 83
- Number of attempts: 3
Put the months in order - 922 entries
Our contractor thought that months should be in alphabetical order. Put them in calendar order please.
- Best score: 20
- Best player score: 23
- Position: #35 / 156
- Number of attempts: 7
Separating firstname & lastname - 117 entries
Seperate named with equal tabs.
- Best score: 19
- Best player score: 22
- Position: #19 / 54
- Number of attempts: 1
Reorder the groups - 1120 entries
Change the order so that the groups of fruit come before the vegetables.
- Best score: 14
- Best player score: 14
- Position: #91 / 255
- Number of attempts: 3
move titles next to url, in quotes - 497 entries
had trouble with something similar
- Best score: 19
- Best player score: 19
- Position: #13 / 131
- Number of attempts: 5
Restore order to the alphabet - 183 entries
The numbers are OK. The letters are wonky.
- Best score: 12
- Best player score: 12
- Position: #11 / 66
- Number of attempts: 7
convert yml into java pojo field - 826 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: #88 / 222
- Number of attempts: 3
Assign numbers to fields - 94 entries
You are given a list of space-separated strings. Add an increasing numeric prefix to each one.
- Best score: 19
- Best player score: 19
- Position: #24 / 53
- Number of attempts: 2
Mirror Symmetry - 787 entries
Add backslashes.
- Best score: 7
- Best player score: 7
- Position: #91 / 264
- Number of attempts: 6
unknown command - 151 entries
I want change 5 words
- Best score: 7
- Best player score: 7
- Position: #60 / 77
- Number of attempts: 1
Swap assigned value - 581 entries
Simple problem but looking for interesting solutions.
- Best score: 10
- Best player score: 10
- Position: #102 / 240
- Number of attempts: 5
From A to B - 562 entries
Mirror and change this text block
- Best score: 16
- Best player score: 16
- Position: #55 / 154
- Number of attempts: 4
Cartesian product - 218 entries
{1,2,3,4,5} X {1,2,3,4,5}
- Best score: 24
- Best player score: 44
- Position: #78 / 92
- Number of attempts: 1
Change your calendar - 349 entries
Happy New Year!
- Best score: 18
- Best player score: 88
- Position: #81 / 82
- Number of attempts: 1
Collect List - 4212 entries
Convert to comma separated list.
- Best score: 12
- Best player score: 12
- Position: #518 / 1176
- Number of attempts: 6
VimGolfNight - 520 entries
Based on "The name of the game".
- Best score: 12
- Best player score: 12
- Position: #280 / 338
- Number of attempts: 2
Space out the alphabet - 1602 entries
Put 3 spaces between adjacent letters.
- Best score: 15
- Best player score: 21
- Position: #291 / 436
- Number of attempts: 5
Shuffled numbers - 225 entries
Each number is paired with the number it should follow. That's enough information to put them in order.
- Best score: 15
- Best player score: 15
- Position: #38 / 91
- Number of attempts: 4
Remove hard line breaks - 61 entries
Text files with Hard breaks are not good for e-readers. We need remove all hard line breaks and have long lines.
- Best score: 10
- Best player score: 10
- Position: #9 / 29
- Number of attempts: 3
Custom McCarthy sequence - 35 entries
Generate the first one hundred and twenty numbers (starting with n=1). See here for some inspiration: http://en.wikipedia.org/wiki/McCarthy_91_function
- Best score: 15
- Best player score: 25
- Position: #13 / 14
- Number of attempts: 1
Refactoring useless Method away - 91 entries
Real-life challenge, convert a bunch of ifs to a switch statement
- Best score: 47
- Best player score: 60
- Position: #18 / 32
- Number of attempts: 2
Test everything! - 152 entries
... and build the desired input data structure. Transform a list of values into a non-trivial format.
- Best score: 22
- Best player score: 31
- Position: #22 / 49
- Number of attempts: 1
Condensed Cases - 775 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: 12
- Position: #63 / 239
- Number of attempts: 6
increment by column in XML - 146 entries
modify an arbitrary "column" in an xml table by incrementing a an arbitrary placeholder string
- Best score: 19
- Best player score: 19
- Position: #8 / 53
- Number of attempts: 2
Square numbers - 95 entries
Boring math puzzle.
- Best score: 16
- Best player score: 18
- Position: #7 / 39
- Number of attempts: 4
Pretty format for variable declarations - 148 entries
Project standards demand the equal signs must be aligned for better readability.
- Best score: 13
- Best player score: 14
- Position: #20 / 58
- Number of attempts: 7
Happy TvvO - 394 entries
Don’t forget the past, learn from it. Happy New Year.
- Best score: 12
- Best player score: 12
- Position: #149 / 196
- Number of attempts: 4
I forgot quotes - 15852 entries
Oops.
- Best score: 10
- Best player score: 11
- Position: #1230 / 4136
- Number of attempts: 12
learn vim in short time - 222 entries
so happy to learn vim.because vim is awesome
- Best score: 8
- Best player score: 8
- Position: #124 / 153
- Number of attempts: 1
Subtraction - 177 entries
Solve the equations.
- Best score: 18
- Best player score: 19
- Position: #16 / 60
- Number of attempts: 7
Count both ways - 985 entries
Right AND down.
- Best score: 13
- Best player score: 14
- Position: #86 / 347
- Number of attempts: 4
Change name of a variable - 168 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: #121 / 131
- Number of attempts: 1
Lisp Condense - 434 entries
Reduce 4 cons selection operations down to one function call.
- Best score: 13
- Best player score: 20
- Position: #150 / 153
- Number of attempts: 1
Gray area - 712 entries
It's a golf metaphor or something.
- Best score: 11
- Best player score: 12
- Position: #126 / 264
- Number of attempts: 4
Neither Fizz nor Buzz - 223 entries
Not your regular increment macro! The gaps are tricky.
- Best score: 13
- Best player score: 13
- Position: #13 / 98
- Number of attempts: 5
Do you demand a shrubbery? - 1107 entries
Use :redir and crush the emacsgolfers.
- Best score: 15
- Best player score: 18
- Position: #153 / 292
- Number of attempts: 2
Don't know what this is - 1959 entries
Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.
- Best score: 11
- Best player score: 12
- Position: #235 / 574
- Number of attempts: 3
Where should I put the Newline? - 853 entries
Help me put the newline.
- Best score: 7
- Best player score: 7
- Position: #217 / 427
- Number of attempts: 3
Piphilology - 131 entries
Piphilology comprises the creation and use of mnemonic techniques to remember a span of digits of the mathematical constant π. http://en.wikipedia.org/wiki/Piphilology
- Best score: 29
- Best player score: 38
- Position: #43 / 51
- Number of attempts: 1
Mess in revision history - 1157 entries
Help Joe clean up what Steve has cobbled.
- Best score: 17
- Best player score: 37
- Position: #218 / 245
- Number of attempts: 1
Carriage return - 42 entries
I have some raw data from terminal output which uses carriege return for formatting. Carriage return sets the pointer to the first character on the line, and subsequent characters will overwrite what was there before. The challange is to simulate the terminal behaviour in vim. I'm kind of unsure if I should have skipped lines 9 and 15, since there might be some interesting solutions which are not that generic. Happy Golfing!
- Best score: 22
- Best player score: 30
- Position: #16 / 20
- Number of attempts: 1
Split the words - 356 entries
Add the spaces manually if you must, but if you use Vim's spell checking feature wisely, I think you'll save a LARGE number of strokes.
- Best score: 18
- Best player score: 34
- Position: #37 / 108
- Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10566 entries
A HAPPY NEW YEAR 2014 !
- Best score: 11
- Best player score: 11
- Position: #1585 / 3647
- Number of attempts: 3
Letter case trickery - 1582 entries
This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.
- Best score: 9
- Best player score: 9
- Position: #36 / 507
- Number of attempts: 5
Untangle my tail, please! - 57 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: 16
- Position: #8 / 31
- Number of attempts: 3
quotes inside quotes - 3088 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: #350 / 1060
- Number of attempts: 4
Hanging Indent for Footnotes - 69 entries
Format this footnote (in kramdown syntax) so that it has hanging indent.
- Best score: 17
- Best player score: 29
- Position: #28 / 28
- Number of attempts: 2
Number an outline - 246 entries
The indent and words are right, but the numbers are all wrong.
- Best score: 25
- Best player score: 57
- Position: #43 / 74
- Number of attempts: 3
Words in parens - 12790 entries
We should all ace this, right?
- Best score: 13
- Best player score: 13
- Position: #8 / 3932
- Number of attempts: 4
paste indent correction - JS - 99 entries
You copy some javascript code from a website and paste it into vim, it does not look good!
- Best score: 16
- Best player score: 16
- Position: #38 / 56
- Number of attempts: 3
Hole-in-one - 985 entries
Lets take this golf thing literally.. Drive off the tee into the hole, and of course you don't strike the ball completely clean.
- Best score: 15
- Best player score: 16
- Position: #93 / 300
- Number of attempts: 5
Delete unwanted lines - 390 entries
Delete all lines which does not end in "o.."
- Best score: 9
- Best player score: 9
- Position: #183 / 223
- Number of attempts: 3
Fibonacci Triangles - 49 entries
Triangles
- Best score: 40
- Best player score: 65
- Position: #18 / 20
- Number of attempts: 2
Lookahead and Lookbehind - 67 entries
Look everywhere
- Best score: 16
- Best player score: 26
- Position: #27 / 29
- Number of attempts: 2
Word frequency alignment - 263 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: 6
- Position: #142 / 152
- Number of attempts: 4
Minimalist Limerick - 510 entries
Reproduce this lovely poem.
- Best score: 31
- Best player score: 31
- Position: #33 / 169
- Number of attempts: 4
fib.c cleanup - 65 entries
cleanup the file
- Best score: 15
- Best player score: 16
- Position: #46 / 53
- Number of attempts: 2
REDRUM - 147 entries
If you remember "The Shinning", the first time you saw the bloody word REDRUM you probably thinked "What the Hell is that?" Well, then you know that you need a little help from a looking-glass to make sense of it. Now it's time to use vim like a mirror to reveal the message.
- Best score: 14
- Best player score: 14
- Position: #20 / 60
- Number of attempts: 6
Enumerate words - 241 entries
Enumerate the unique words in order.
- Best score: 23
- Best player score: 25
- Position: #33 / 86
- Number of attempts: 3
Groups magic - 145 entries
Regexp or macros for string converting: (a) -> ___ (abc) -> ____ (abcd) -> ______ All in the '(' replace to _ multiply by char count + ()
- Best score: 13
- Best player score: 14
- Position: #66 / 87
- Number of attempts: 1
Sort by your own sum - 69 entries
Same numbers as last time, but you'll have to add them yourself.
- Best score: 25
- Best player score: 26
- Position: #4 / 27
- Number of attempts: 7
Sort by sum of numbers in a line(?) - 53 entries
The lines with the biggest sums need to be at the top. The sums are on the right, which makes life hard. Maybe you can find a feature that will do all the work for you...
- Best score: 15
- Best player score: 16
- Position: #33 / 34
- Number of attempts: 1
abcd > a b c d - 274 entries
transform the single spaces into 4 spaces repeat for each line
- Best score: 15
- Best player score: 15
- Position: #190 / 213
- Number of attempts: 1
Checkerboard case pattern - 144 entries
All the squares are white. Make some of them black. But only the right ones.
- Best score: 15
- Best player score: 20
- Position: #36 / 57
- Number of attempts: 3
NATO phonetic alphabet - 492 entries
Transform the series of words into a list.
- Best score: 19
- Best player score: 19
- Position: #48 / 187
- Number of attempts: 3
A simple change - 433 entries
Just change the numbers in the most efficient way ...
- Best score: 12
- Best player score: 12
- Position: #47 / 186
- Number of attempts: 3
The name of the game - 638 entries
End up with the name of the game.
- Best score: 11
- Best player score: 11
- Position: #267 / 350
- Number of attempts: 2
SFD-ROC: ASCII Logo Border - 70 entries
Draw a border around this familiar logo ;)
- Best score: 20
- Best player score: 42
- Position: #29 / 30
- Number of attempts: 2
SFD-ROC: vimvimvim - 1534 entries
Oh no, this line is longer than 80 chars... put each 'vim' on a new line.
- Best score: 8
- Best player score: 8
- Position: #123 / 432
- Number of attempts: 6
SFD-ROC: Pipe Dreams - 99 entries
Move the pipes so they match the output.
- Best score: 12
- Best player score: 12
- Position: #8 / 44
- Number of attempts: 5
Stairs Indenting - 440 entries
Indent each line with <line number> whitespaces.
- Best score: 12
- Best player score: 12
- Position: #23 / 189
- Number of attempts: 5
Saving the hashes(#) - 1974 entries
The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.
- Best score: 20
- Best player score: 21
- Position: #125 / 469
- Number of attempts: 5
Convert pandoc unordered list to a numbered list - 157 entries
I know it's possible to use #. in pandoc to auto-generate numbered lists, but then it's not easy to tell how many items there are when reading it in Markdown. How fast can you make the switch?
- Best score: 20
- Best player score: 20
- Position: #4 / 55
- Number of attempts: 3
SFD-ROC: ROT13 Phonics - 81 entries
A is for apple, b is for ball, etc... This familiar phonics poem has been rotated 13 characters. Make the letter match the word.
- Best score: 6
- Best player score: 6
- Position: #58 / 66
- 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: #26 / 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: 19
- Position: #220 / 756
- Number of attempts: 3
Switch function arguments - 2002 entries
How to switch two arguments of a function.
- Best score: 11
- Best player score: 11
- Position: #184 / 634
- Number of attempts: 7
Append semicolon after expressions - 975 entries
Some lines need the semicolon, some don't.
- Best score: 11
- Best player score: 11
- Position: #132 / 394
- Number of attempts: 5
Reverse and double space - 471 entries
Reverse the order of the given lines and double space everything
- Best score: 14
- Best player score: 14
- Position: #68 / 190
- Number of attempts: 3
Remove noise from HTTP log - 670 entries
This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.
- Best score: 15
- Best player score: 15
- Position: #140 / 265
- Number of attempts: 3
Remove semicolons after expressions - 584 entries
A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.
- Best score: 6
- Best player score: 6
- Position: #119 / 247
- Number of attempts: 7
The meaning - 538 entries
Numbers are fun!
- Best score: 5
- Best player score: 5
- Position: #303 / 346
- Number of attempts: 1
Make it more readable - 1930 entries
Insert blank lines to make it more organized and readable
- Best score: 13
- Best player score: 14
- Position: #194 / 636
- Number of attempts: 3
Line Zipper - 449 entries
Zip/pair related lines.
- Best score: 12
- Best player score: 12
- Position: #17 / 209
- Number of attempts: 5
Complete the hex array data (Part II) - 151 entries
Do not use external tools(e.g. tac, seq) [My interpretation of Rule #7]
- Best score: 20
- Best player score: 22
- Position: #35 / 67
- Number of attempts: 3
It'ss tooo coold too typpe todaay - 209 entries
My hands are numb with cold. It's hard to type correctly.
- Best score: 16
- Best player score: 23
- Position: #68 / 95
- Number of attempts: 1
Numbering a List - 1845 entries
Pretty simple, number the list.
- Best score: 13
- Best player score: 13
- Position: #72 / 634
- Number of attempts: 2
The holy-grail may help - 334 entries
Can you find it in less than 20 strokes, Arthur?
- Best score: 16
- Best player score: 16
- Position: #153 / 202
- Number of attempts: 2
Assignment Alignment - 824 entries
line up the operators. Use spaces, not tabs.
- Best score: 18
- Best player score: 21
- Position: #92 / 215
- Number of attempts: 6
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: #543 / 633
- Number of attempts: 1
Reverse and count - 432 entries
Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.
- Best score: 18
- Best player score: 18
- Position: #12 / 168
- Number of attempts: 2
Letters are numbers - 149 entries
Letters and numbers are interchangeable. A lot of programming languages give you simple ways to convert individual letters to hex, binary and decimal but does Vim?
- Best score: 20
- Best player score: 30
- Position: #41 / 73
- Number of attempts: 3
Reverse Simple Deletion - 822 entries
You did the simple deletion, now reverse it.
- Best score: 11
- Best player score: 12
- Position: #361 / 449
- Number of attempts: 2
Increment, increment, increment.... - 617 entries
Vim likes macros
- Best score: 10
- Best player score: 10
- Position: #46 / 390
- Number of attempts: 1
Sorting paragraphs - 502 entries
Order the paragraphs correctly, per prefixed index
- Best score: 18
- Best player score: 41
- Position: #122 / 155
- Number of attempts: 1
Hatsuyume - 442 entries
http://en.wikipedia.org/wiki/Hatsuyume
- Best score: 16
- Best player score: 22
- Position: #38 / 173
- Number of attempts: 1
Context insensitive completion 0 - 486 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: #113 / 228
- Number of attempts: 2
Compile C - 357 entries
You might have to get clever to do this one.
- Best score: 19
- Best player score: 21
- Position: #72 / 129
- Number of attempts: 4
Almost encrypted - 195 entries
Convert the first paragraph to be even less readable.
- Best score: 5
- Best player score: 5
- Position: #120 / 143
- Number of attempts: 2
Remember FizzBuzz? - 634 entries
Output FizzBuzz to 100. Start with nothing.
- Best score: 39
- Best player score: 55
- Position: #62 / 173
- Number of attempts: 3
Deleting folded text - 325 entries
The text below contains three folds. Delete them (and the text inside them). For example: 123 456 /*{{{*/ 789 /*}}}*/ 012 Should become: 123 012 Also, add `aoeuaoeu` to make sure small solutions don't get flagged as cheating.
- Best score: 17
- Best player score: 17
- Position: #5 / 111
- Number of attempts: 7
Sort and add attributes - 1250 entries
Sort the states and add the attribute country to each record.
- Best score: 33
- Best player score: 33
- Position: #245 / 505
- Number of attempts: 2
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: #674 / 3482
- Number of attempts: 3