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

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

  • Best score: 21
  • Best player score: 33
  • Position: #88 / 122
  • Number of attempts: 1
Remove line numbers - 551 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #86 / 148
  • Number of attempts: 1
Find fix point of cos - 1138 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: #84 / 341
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 488 entries

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

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

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

  • Best score: 14
  • Best player score: 23
  • Position: #310 / 491
  • Number of attempts: 2
HS exam question - 1510 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 64
  • Position: #136 / 397
  • Number of attempts: 1
Reformat symbols in list - 1472 entries

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

  • Best score: 24
  • Best player score: 35
  • Position: #211 / 324
  • Number of attempts: 2
Many duplicates - 1259 entries

Quick and easy

  • Best score: 7
  • Best player score: 11
  • Position: #355 / 415
  • Number of attempts: 1
delete swap - 1540 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #104 / 483
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 1184 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: #176 / 249
  • Number of attempts: 1
Fix the shell script! - 2347 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 48
  • Position: #438 / 543
  • Number of attempts: 1
Visual block training - 1005 entries

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

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #377 / 526
  • Number of attempts: 2
hello-world-vimgolf - 2366 entries

Simple number generation

  • Best score: 10
  • Best player score: 14
  • Position: #511 / 669
  • Number of attempts: 2
Contribute to keyboard mashing - 842 entries

Speak in tongues

  • Best score: 17
  • Best player score: 22
  • Position: #226 / 258
  • Number of attempts: 1
Migrated to Postgres! - 312 entries

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

  • Best score: 26
  • Best player score: 28
  • Position: #35 / 122
  • Number of attempts: 1
Inverting Lines - 1837 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #297 / 498
  • Number of attempts: 1
RUST Cargo.toml version to last - 320 entries

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

  • Best score: 16
  • Best player score: 25
  • Position: #79 / 95
  • Number of attempts: 2
Python: Def to Lambda - 423 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 23
  • Position: #125 / 149
  • 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