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

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

  • Best score: 21
  • Best player score: 33
  • Position: #90 / 129
  • Number of attempts: 1
Remove line numbers - 577 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: #90 / 156
  • Number of attempts: 1
Find fix point of cos - 1155 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: #85 / 348
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 491 entries

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

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

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

  • Best score: 14
  • Best player score: 23
  • Position: #316 / 499
  • Number of attempts: 2
HS exam question - 1514 entries

Convert the data to a python dictionary

  • Best score: 12
  • Best player score: 64
  • Position: #138 / 399
  • Number of attempts: 1
Reformat symbols in list - 1476 entries

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

  • Best score: 24
  • Best player score: 35
  • Position: #213 / 326
  • Number of attempts: 2
Many duplicates - 1281 entries

Quick and easy

  • Best score: 7
  • Best player score: 11
  • Position: #360 / 420
  • Number of attempts: 1
delete swap - 1565 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #104 / 491
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 1190 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: #177 / 251
  • Number of attempts: 1
Fix the shell script! - 2373 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 48
  • Position: #442 / 550
  • Number of attempts: 1
Visual block training - 1024 entries

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

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #380 / 532
  • Number of attempts: 2
hello-world-vimgolf - 2389 entries

Simple number generation

  • Best score: 10
  • Best player score: 14
  • Position: #516 / 678
  • Number of attempts: 2
Contribute to keyboard mashing - 848 entries

Speak in tongues

  • Best score: 17
  • Best player score: 22
  • Position: #227 / 259
  • Number of attempts: 1
Migrated to Postgres! - 316 entries

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

  • Best score: 26
  • Best player score: 28
  • Position: #36 / 123
  • Number of attempts: 1
Inverting Lines - 1843 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #298 / 500
  • Number of attempts: 1
RUST Cargo.toml version to last - 325 entries

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

  • Best score: 16
  • Best player score: 25
  • Position: #80 / 96
  • Number of attempts: 2
Python: Def to Lambda - 432 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 23
  • Position: #127 / 151
  • Number of attempts: 1
Add string initializers to an enum - 862 entries

Change Typescript enum so that it has string initializers.

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

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

entered into 20 challenges

contributed 0 challenges