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

[Real World] PHP To Markdown - 18 entries

Fun refactoring I had to do in the real world. This presents several challenges: - How to create a table that fits the informations exactly - How to keep track of two informations per line while doing the refactoring - Generate the link from the actual text Have fun!

  • Best score: 141
  • Best player score: 178
  • Number of attempts: 1
Draw the Go board - 109 entries

which is a 19×19 lines board. Here we use ascii characters only for simplicity. See diff file to get a sense. (See also http://en.wikipedia.org/wiki/Go_(game))

  • Best score: 50
  • Best player score: 69
  • Number of attempts: 1
html paragraph to table - 317 entries

reformat html paragraph to table

  • Best score: 48
  • Best player score: 55
  • Number of attempts: 6
Resort and deup a CSV list - 90 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
  • Number of attempts: 5
The D a n k Side of the Moon - 28 entries

You're making a vaporwave cover of The Dark Side of the Moon. So for the tracklisting, you want to: 1. Change the track names to v a p o r c a s e 2. Double the track lengths (since you're slowing them down). Well... let's just double the minutes.

  • Best score: 40
  • Best player score: 40
  • Number of attempts: 2
Kolakoski sequence -- level 2 - 8 entries

This time, the line above describes the line below. Level 1 at: http://www.vimgolf.com/challenges/5c880211ab65cb00065c74eb

  • Best score: 38
  • Best player score: 38
  • Number of attempts: 4
Simple format (2) - 220 entries

try again!

  • Best score: 23
  • Best player score: 38
  • Number of attempts: 1
Pascal's Triangle - 19 entries

Generate the first 17 left-justified rows of Pascal's triangle.

  • Best score: 36
  • Best player score: 36
  • Number of attempts: 4
Letterbox - 68 entries

Make a box!

  • Best score: 35
  • Best player score: 35
  • Number of attempts: 4
Extract argument from function - 1990 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 5
-a-b-c- - 2544 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 3
Triangular Numbers - 48 entries

Generate the first 50 triangular numbers.

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 3
Simple text editing with Vim - 10332 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 3
Com(m)a Trouble - 1604 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 6
Vice versa - 5866 entries

Little role switching.

  • Best score: 2
  • Best player score: 12
  • Number of attempts: 5
Sierpinski's Triangle - 79 entries

Build the famous fractal, Sierpinski's Triangle.

  • Best score: 25
  • Best player score: 26
  • Number of attempts: 3
One to Ten - 845 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
  • Number of attempts: 3
snowflake fractal - 26 entries

From step 0 to step 3 of a fractal

  • Best score: 26
  • Best player score: 26
  • Number of attempts: 5
Permutations N=4 - 55 entries

Could use backtracking or other algorithm to generate sorted numbers. Second chance !

  • Best score: 25
  • Best player score: 25
  • Number of attempts: 9
Every other line - 2051 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 2
Flip the bit - 70 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 10
  • Number of attempts: 1
Append semicolon after expressions - 848 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Counting in binary - 393 entries

"a" represents 0; "A" represents 1. Start from zero and count to 15.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 4
Generate Fibonacci Numbers - 200 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 23
  • Number of attempts: 1
Words in parens - 10930 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 4
Just the middle - 9074 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
Collect List - 3432 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
Convert Application Output to CSV - 102 entries

Change the application output to comma-separated values

  • Best score: 17
  • Best player score: 17
  • Number of attempts: 6
Build a six - 185 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 22
  • Number of attempts: 2
Kolakoski sequence -- level 1 - 36 entries

Generate the Kolakoski sequence as described by its first 75 terms.

  • Best score: 22
  • Best player score: 22
  • Number of attempts: 5
V to the i - 3854 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
comments galore - 901 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 3
move titles next to url, in quotes - 245 entries

had trouble with something similar

  • Best score: 19
  • Best player score: 22
  • Number of attempts: 2
Remove semicolons after expressions - 451 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 6
  • Number of attempts: 3
Swap values inside brackets - 1408 entries

Easy challenge.

  • Best score: 2
  • Best player score: 14
  • Number of attempts: 8
7th Birthday - 163 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: 27
  • Number of attempts: 2
Applying same text modification in several lines - 1547 entries

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

  • Best score: 4
  • Best player score: 13
  • Number of attempts: 3
remove lines containing the word "reader" - 1439 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
That hyphen - 2148 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 5
Delete to the end of the current line - 421 entries

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

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
multiple cursor alternative - 1038 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: 20
  • Number of attempts: 5
Basic renumbering - 4564 entries

Renumbering Basic.

  • Best score: 2
  • Best player score: 11
  • Number of attempts: 7
Fun With The Diagonal - 85 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 1
ninja substitution - 417 entries

How can you reuse a previous substitution ?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 4
One number per line - 12428 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 7
Change part of a function name in multiple occurrences - 364 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
  • Number of attempts: 3
Increment each number - 440 entries

Increment each number individually by one

  • Best score: 6
  • Best player score: 15
  • Number of attempts: 7
Simple, Practical, and Common - 24440 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: 2
  • Best player score: 22
  • Number of attempts: 6
A HAPPY NEW YEAR 2014 ! - 9432 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Space out the alphabet - 1347 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 5
Cool or not? - 417 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 3
Team names - 1419 entries

The team names are misspelled.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 5
Two pairs of cluster of letters creates word - 373 entries

Clean and group.

  • Best score: 17
  • Best player score: 17
  • Number of attempts: 3
Put the months in order - 403 entries

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

  • Best score: 23
  • Best player score: 30
  • Number of attempts: 3
Across-Down Flip - 42 entries

Do this instead of the Sunday crossword.

  • Best score: 24
  • Best player score: 24
  • Number of attempts: 5
simple format - 2565 entries

make it look better.

  • Best score: 20
  • Best player score: 20
  • Number of attempts: 10
Array transposition - 1565 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 21
  • Number of attempts: 3
Python challenge - 84 entries

Change the types of the variables in the list from str to float, while keeping the truncation.

  • Best score: 8
  • Best player score: 58
  • Number of attempts: 1
Box it - 2290 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 4

Contributed Challenges

ninja substitution - 417 entries

How can you reuse a previous substitution ?

Kolakoski sequence -- level 2 - 8 entries

This time, the line above describes the line below. Level 1 at: http://www.vimgolf.com/challenges/5c880211ab65cb00065c74eb

Kolakoski sequence -- level 1 - 36 entries

Generate the Kolakoski sequence as described by its first 75 terms.

snowflake fractal - 26 entries

From step 0 to step 3 of a fractal

Box it - 2290 entries

Create a box around a line.

Titouan Teyssier
Twitter:

I am a student in IT, I like to do projects with p5js

entered into 59 challenges

contributed 5 challenges