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

Populate 3D bone names list - 652 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 33
  • Position: #117 / 168
  • Number of attempts: 1
Remove line numbers - 778 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 8
  • Best player score: 15
  • Position: #118 / 205
  • Number of attempts: 1
Find fix point of cos - 1468 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #102 / 431
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 576 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #52 / 324
  • Number of attempts: 2
Paste a column after a column - 2662 entries

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

  • Best score: 14
  • Best player score: 23
  • Position: #373 / 576
  • Number of attempts: 2
HS exam question - 1610 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 64
  • Position: #147 / 420
  • Number of attempts: 1
Reformat symbols in list - 1649 entries

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

  • Best score: 24
  • Best player score: 35
  • Position: #231 / 355
  • Number of attempts: 2
Many duplicates - 1472 entries

Quick and easy

  • Best score: 7
  • Best player score: 11
  • Position: #410 / 480
  • Number of attempts: 1
delete swap - 1834 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #104 / 570
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 1294 entries

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

  • Best score: 29
  • Best player score: 51
  • Position: #192 / 277
  • Number of attempts: 1
Fix the shell script! - 2663 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 48
  • Position: #501 / 619
  • Number of attempts: 1
Visual block training - 1116 entries

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

  • Best score: 17
  • Best player score: 29
  • Position: #86 / 208
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1680 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #393 / 564
  • Number of attempts: 2
hello-world-vimgolf - 2523 entries

Simple number generation

  • Best score: 10
  • Best player score: 14
  • Position: #548 / 722
  • Number of attempts: 2
Contribute to keyboard mashing - 903 entries

Speak in tongues

  • Best score: 17
  • Best player score: 22
  • Position: #241 / 274
  • Number of attempts: 1
Migrated to Postgres! - 348 entries

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

  • Best score: 26
  • Best player score: 28
  • Position: #40 / 134
  • Number of attempts: 1
Inverting Lines - 1952 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #312 / 522
  • Number of attempts: 1
RUST Cargo.toml version to last - 394 entries

RUST Cargo.toml version to last. rusty practice on vimgolf

  • Best score: 16
  • Best player score: 25
  • Position: #88 / 105
  • Number of attempts: 2
Python: Def to Lambda - 474 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 23
  • Position: #132 / 158
  • Number of attempts: 1
Add string initializers to an enum - 899 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 27
  • Position: #202 / 264
  • Number of attempts: 1
Abdelrahman Madkour
Twitter:

Just a 220 looking for my 284. He/him.

entered into 20 challenges

contributed 0 challenges