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

Remove line numbers - 82 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: #18 / 30
  • Number of attempts: 1
Find fix point of cos - 648 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: #49 / 181
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 335 entries

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

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

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

  • Best score: 14
  • Best player score: 23
  • Position: #232 / 366
  • Number of attempts: 2
HS exam question - 1275 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 64
  • Position: #117 / 347
  • Number of attempts: 1
Reformat symbols in list - 1210 entries

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

  • Best score: 24
  • Best player score: 35
  • Position: #177 / 274
  • Number of attempts: 2
Many duplicates - 1048 entries

Quick and easy

  • Best score: 7
  • Best player score: 11
  • Position: #292 / 341
  • Number of attempts: 1
delete swap - 1268 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #104 / 403
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 1008 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: #154 / 221
  • Number of attempts: 1
Fix the shell script! - 1852 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 48
  • Position: #357 / 450
  • Number of attempts: 1
Visual block training - 842 entries

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

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #348 / 481
  • Number of attempts: 2
hello-world-vimgolf - 2125 entries

Simple number generation

  • Best score: 10
  • Best player score: 14
  • Position: #457 / 601
  • Number of attempts: 2
Contribute to keyboard mashing - 758 entries

Speak in tongues

  • Best score: 17
  • Best player score: 22
  • Position: #204 / 236
  • Number of attempts: 1
Migrated to Postgres! - 275 entries

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

  • Best score: 26
  • Best player score: 28
  • Position: #35 / 109
  • Number of attempts: 1
RUST Cargo.toml version to last - 308 entries

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

  • Best score: 16
  • Best player score: 27
  • Position: #78 / 91
  • Number of attempts: 1
Python: Def to Lambda - 418 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 23
  • Position: #122 / 146
  • Number of attempts: 1
Add string initializers to an enum - 850 entries

Change Typescript enum so that it has string initializers.

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

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

entered into 18 challenges

contributed 0 challenges