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

Quicksort - 1709 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 6
  • Position: #30 / 375
  • Number of attempts: 5
EDN reformat - 1085 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 18
  • Position: #32 / 151
  • Number of attempts: 12
Remove line numbers - 617 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: 12
  • Position: #30 / 166
  • Number of attempts: 3
Find fix point of cos - 1173 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: #157 / 356
  • Number of attempts: 1
Paste a column after a column - 2367 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #52 / 514
  • Number of attempts: 10
Tabbed Table to Python Array - 646 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: 56
  • Position: #53 / 168
  • Number of attempts: 5
Many duplicates - 1308 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #230 / 429
  • Number of attempts: 1
Fix the shell script! - 2414 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 30
  • Position: #232 / 559
  • Number of attempts: 3
Wikitext headings to markdown - 984 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #36 / 206
  • Number of attempts: 10
hello-world-vimgolf - 2431 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #269 / 692
  • Number of attempts: 1
Contribute to keyboard mashing - 874 entries

Speak in tongues

  • Best score: 17
  • Best player score: 18
  • Position: #104 / 265
  • Number of attempts: 3
Fill in the chess board - 932 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 72
  • Position: #153 / 179
  • Number of attempts: 1
Plotting some variables in python - 1597 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 35
  • Position: #81 / 342
  • Number of attempts: 5
Inverting Lines - 1866 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #299 / 504
  • Number of attempts: 2
RUST Cargo.toml version to last - 325 entries

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

  • Best score: 16
  • Best player score: 23
  • Position: #75 / 96
  • Number of attempts: 1
One number per line - 18668 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #761 / 3851
  • Number of attempts: 6
Space out the alphabet - 1630 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 15
  • Position: #111 / 442
  • Number of attempts: 5
I forgot quotes - 15943 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2377 / 4165
  • Number of attempts: 3
Words in parens - 12867 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1170 / 3949
  • Number of attempts: 4
くりち / 栗原佑弥
Twitter2:

金髪のやつです。 九工大情工B4 C3 C++/Go/React AtCoder(緑) 福岡未踏Pro第1期

entered into 19 challenges

contributed 0 challenges