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

Put a newline after every 10 lines in vim - 1171 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #45 / 404
  • Number of attempts: 5
Wikitext headings to markdown - 709 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #14 / 157
  • Number of attempts: 8
hello-world-vimgolf - 1768 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #112 / 509
  • Number of attempts: 3
Contribute to keyboard mashing - 698 entries

Speak in tongues

  • Best score: 17
  • Best player score: 20
  • Position: #142 / 215
  • Number of attempts: 2
Lowercase first characters - 387 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: #17 / 142
  • Number of attempts: 4
Inverting Lines - 1447 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #137 / 396
  • Number of attempts: 3
CSV to MD format - 328 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 61
  • Position: #31 / 75
  • Number of attempts: 1
Making 3 line function a one liner. - 197 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #75 / 129
  • Number of attempts: 1
swap number pairs - 1685 entries

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

  • Best score: 16
  • Best player score: 27
  • Position: #175 / 314
  • Number of attempts: 2
HS Final exam vimgolf - 754 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 32
  • Position: #131 / 202
  • Number of attempts: 3
Easy modification of ssh config - 265 entries

Just add another alias to each worker

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

LAMBDA!!!

  • Best score: 19
  • Best player score: 22
  • Position: #104 / 135
  • Number of attempts: 2
Rural Post - 4160 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #593 / 1030
  • Number of attempts: 2
Multiline to Single Line - 552 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #109 / 248
  • Number of attempts: 3
Get mail address from outlook format - 600 entries

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

  • Best score: 15
  • Best player score: 31
  • Position: #179 / 188
  • Number of attempts: 1
prepend * to every non-blank line - 6061 entries

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

  • Best score: 10
  • Best player score: 16
  • Position: #1038 / 1481
  • Number of attempts: 2
Separate the lines - 161 entries

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

  • Best score: 11
  • Best player score: 11
  • Position: #50 / 86
  • Number of attempts: 6
Add semicolons - 10715 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1719 / 3019
  • Number of attempts: 3
remove lines containing the word "reader" - 3480 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #829 / 1127
  • Number of attempts: 3
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: #51 / 112
  • Number of attempts: 5
Array of characters - 135 entries

We all copy paste things off the internet, but the syntax doesn't look right. Fix it as fast as possible.

  • Best score: 33
  • Best player score: 52
  • Position: #39 / 41
  • Number of attempts: 1
Generate a list of numbers - 280 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 15
  • Position: #111 / 134
  • Number of attempts: 3
Separating firstname & lastname - 117 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 23
  • Position: #22 / 54
  • Number of attempts: 1
Simple format (2) - 321 entries

try again!

  • Best score: 23
  • Best player score: 38
  • Position: #55 / 67
  • Number of attempts: 2
camel riding - 757 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 18
  • Position: #234 / 271
  • Number of attempts: 2
Config Sections - 38 entries

Section me!

  • Best score: 43
  • Best player score: 46
  • Position: #7 / 18
  • Number of attempts: 3
Square numbers - 91 entries

Boring math puzzle.

  • Best score: 16
  • Best player score: 25
  • Position: #19 / 37
  • Number of attempts: 6
It's a factor - 91 entries

Flaunt your macro prowess by factoring some numbers. Too hard? It takes less than 30 strokes, I promise.

  • Best score: 24
  • Best player score: 25
  • Position: #5 / 36
  • Number of attempts: 2
Alphabet soup - 396 entries

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

  • Best score: 25
  • Best player score: 25
  • Position: #10 / 96
  • Number of attempts: 7
Simple text editing with Vim - 11753 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #1983 / 3447
  • Number of attempts: 1

Contributed Challenges

CSV to MD format - 328 entries

To convert a CSV list to Markdown list

Increment number for every 10 lines - 173 entries

The file consists of 2 columns (code and percentage). We need to add 2 more columns with increasing number for 4th column (Xcols) and increment 3rd column (Ycols) only for every 10 lines with reset of 4th column

Selvaganapathy P
Twitter:

entered into 30 challenges

contributed 2 challenges