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 - 1890 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: 24
  • Position: #188 / 415
  • Number of attempts: 4
Remove line numbers - 703 entries

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

  • Best score: 9
  • Best player score: 59
  • Position: #180 / 190
  • Number of attempts: 1
Find fix point of cos - 1382 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: 29
  • Position: #333 / 404
  • Number of attempts: 4
Paste a column after a column - 2518 entries

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

  • Best score: 14
  • Best player score: 42
  • Position: #456 / 549
  • Number of attempts: 4
Reformat symbols in list - 1607 entries

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

  • Best score: 24
  • Best player score: 45
  • Position: #299 / 345
  • Number of attempts: 2
Substraction (bis) - 584 entries

Solve the equations (adapted from the original @Caek_'s challenge).

  • Best score: 21
  • Best player score: 103
  • Position: #98 / 111
  • Number of attempts: 5
Poorly indented Python comments - 1315 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 64
  • Position: #185 / 221
  • Number of attempts: 2
Many duplicates - 1443 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #253 / 467
  • Number of attempts: 2
delete swap - 1773 entries

delete all swap

  • Best score: 5
  • Best player score: 6
  • Position: #409 / 549
  • Number of attempts: 5
Put a newline after every 10 lines in vim - 1656 entries

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

  • Best score: 10
  • Best player score: 16
  • Position: #495 / 555
  • Number of attempts: 2
hello-world-vimgolf - 2494 entries

Simple number generation

  • Best score: 10
  • Best player score: 22
  • Position: #629 / 706
  • Number of attempts: 1
CSV to MD format - 413 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 100
  • Position: #73 / 94
  • Number of attempts: 6
One number per line - 18711 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #1039 / 3858
  • Number of attempts: 3
Kaepa69
Twitter:

放蕩息子

entered into 13 challenges

contributed 0 challenges