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 - 830 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #136 / 295
  • Number of attempts: 2
Wikitext headings to markdown - 541 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 30
  • Position: #79 / 124
  • Number of attempts: 2
hello-world-vimgolf - 1394 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #209 / 399
  • Number of attempts: 1
Fill in the chess board - 488 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 39
  • Position: #66 / 105
  • Number of attempts: 1
Plotting some variables in python - 1119 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 60
  • Position: #173 / 237
  • Number of attempts: 2
Migrated to Postgres! - 200 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 35
  • Position: #67 / 82
  • Number of attempts: 1
Inverting Lines - 1265 entries

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

  • Best score: 10
  • Best player score: 16
  • Position: #271 / 351
  • Number of attempts: 1
Generate a very basic Python constructor - 268 entries

I actually needed to do this myself, so I look forward to learning how.

  • Best score: 38
  • Best player score: 46
  • Position: #33 / 74
  • Number of attempts: 2
Python dataclasses - 629 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 38
  • Position: #147 / 164
  • Number of attempts: 1
Making 3 line function a one liner. - 143 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #36 / 98
  • Number of attempts: 1
Modernise code - 805 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 59
  • Position: #163 / 186
  • Number of attempts: 1
Put a cross in the square - 111 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 28
  • Position: #52 / 52
  • Number of attempts: 1
HS Final exam vimgolf - 630 entries

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

  • Best score: 21
  • Best player score: 35
  • Position: #122 / 170
  • Number of attempts: 1
C to python code snippet - 58 entries

C code can be easily translated into Python code. However, the difference in syntax can make this process tedious and time-consuming. Can Vim help you here?

  • Best score: 48
  • Best player score: 76
  • Position: #14 / 19
  • Number of attempts: 2
Rural Post - 4072 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #589 / 1008
  • Number of attempts: 1
Satisfy the go linter - 1996 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: 27
  • Position: #269 / 400
  • Number of attempts: 4
Yo To Hello - 1042 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #316 / 477
  • Number of attempts: 3
Python Hello World! Reformatting - 894 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: 47
  • Position: #297 / 348
  • Number of attempts: 1
Free hyphen! - 144 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: #77 / 79
  • Number of attempts: 2
Alphabet soup - 378 entries

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

  • Best score: 25
  • Best player score: 42
  • Position: #79 / 90
  • Number of attempts: 1

Contributed Challenges

Plotting some variables in python - 1119 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

A White Dwarf
Twitter:

entered into 20 challenges

contributed 1 challenges