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

Surround the 'z' character with brackets, quotes, and print as formatted string. - 584 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 22
  • Position: #323 / 330
  • Number of attempts: 1
Paste a column after a column - 2669 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 19
  • Position: #293 / 579
  • Number of attempts: 10
Tabbed Table to Python Array - 777 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 50
  • Best player score: 70
  • Position: #148 / 186
  • Number of attempts: 10
Reformat symbols in list - 1658 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 24
  • Position: #40 / 357
  • Number of attempts: 8
Many duplicates - 1489 entries

Quick and easy

  • Best score: 7
  • Best player score: 16
  • Position: #464 / 484
  • Number of attempts: 1
delete swap - 1916 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #215 / 581
  • Number of attempts: 4
Generate a very basic Python constructor (fixed) - 1297 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 44
  • Position: #149 / 278
  • Number of attempts: 3
Visual block training - 1118 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 34
  • Position: #104 / 209
  • Number of attempts: 5
hello-world-vimgolf - 2533 entries

Simple number generation

  • Best score: 10
  • Best player score: 12
  • Position: #462 / 726
  • Number of attempts: 2
Fill in the chess board - 980 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: #115 / 187
  • Number of attempts: 4
Lowercase first characters - 509 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: 51
  • Position: #157 / 188
  • Number of attempts: 2
Migrated to Postgres! - 349 entries

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

  • Best score: 26
  • Best player score: 30
  • Position: #89 / 135
  • Number of attempts: 4
Python dataclasses - 1263 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 33
  • Position: #265 / 322
  • Number of attempts: 1
Modernise code - 1439 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 42
  • Position: #156 / 333
  • Number of attempts: 9
Staircase - 178 entries

Going downstairs, while singing the alphabet song. Some vb practice to us all. Would it be much easier to make it go from left to right instead?

  • Best score: 21
  • Best player score: 49
  • Position: #38 / 38
  • Number of attempts: 1
Enumerate Bullets - 339 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: 18
  • Best player score: 34
  • Position: #64 / 93
  • Number of attempts: 2
Put a cross in the square - 256 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 23
  • Position: #67 / 95
  • Number of attempts: 4
Python: Def to Lambda - 492 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #81 / 162
  • Number of attempts: 3
citizen_hacks_2019_challenge4 - 110 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 5
  • Position: #48 / 71
  • Number of attempts: 1
Shuffled numbers - 256 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: 16
  • Position: #72 / 100
  • Number of attempts: 1
Square numbers - 142 entries

Boring math puzzle.

  • Best score: 16
  • Best player score: 39
  • Position: #45 / 47
  • Number of attempts: 3
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: #118 / 166
  • Number of attempts: 6
hoodiecat
Twitter:

vi

entered into 22 challenges

contributed 0 challenges