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

Replace word while reserving first letter case - 563 entries

Window -> Door window -> door Windows -> Windows windows -> windows

  • Best score: 24
  • Best player score: 24
  • Position: #12 / 113
  • Number of attempts: 6
months to html list items - 916 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 25
  • Position: #97 / 242
  • Number of attempts: 1
Quicksort - 1838 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: #202 / 403
  • Number of attempts: 3
EDN reformat - 1102 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #24 / 154
  • Number of attempts: 10
Tic-Tac-Toe Grid Transformation - 381 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 56
  • Best player score: 70
  • Position: #19 / 82
  • Number of attempts: 4
Populate 3D bone names list - 580 entries

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

  • Best score: 21
  • Best player score: 21
  • Position: #14 / 147
  • Number of attempts: 3
Remove line numbers - 671 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #85 / 182
  • Number of attempts: 3
Find fix point of cos - 1303 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: #165 / 381
  • Number of attempts: 1
Insert column data on Confluence-style table - 444 entries

Add ip addresses into new "IP" column based on the last digits from the "Server" column

  • Best score: 33
  • Best player score: 35
  • Position: #26 / 106
  • Number of attempts: 5
Surround the 'z' character with brackets, quotes, and print as formatted string. - 532 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #151 / 294
  • Number of attempts: 2
Paste a column after a column - 2477 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #74 / 535
  • Number of attempts: 13
Filter number combinations that don't add to 11 - 398 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 27
  • Position: #32 / 113
  • Number of attempts: 4
Tabbed Table to Python Array - 706 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: #60 / 174
  • Number of attempts: 3
Reformat symbols in list - 1570 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #56 / 337
  • Number of attempts: 6
Changing around text with citations - 325 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 28
  • Position: #21 / 91
  • Number of attempts: 9
Poorly indented Python comments - 1300 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #45 / 218
  • Number of attempts: 12
Many duplicates - 1420 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #264 / 458
  • Number of attempts: 1
2 quick changes and a numbered list - 642 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 37
  • Position: #26 / 153
  • Number of attempts: 7
delete swap - 1754 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #300 / 542
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1250 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 29
  • Position: #58 / 270
  • Number of attempts: 10
Fix the shell script! - 2540 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 30
  • Position: #237 / 587
  • Number of attempts: 4
Visual block training - 1069 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #40 / 203
  • Number of attempts: 7
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: 11
  • Position: #190 / 555
  • Number of attempts: 3
Wikitext headings to markdown - 986 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 21
  • Position: #69 / 208
  • Number of attempts: 11
hello-world-vimgolf - 2481 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #302 / 702
  • Number of attempts: 1
Contribute to keyboard mashing - 887 entries

Speak in tongues

  • Best score: 17
  • Best player score: 18
  • Position: #109 / 269
  • Number of attempts: 2
Reordering Lorem Ipsum - 287 entries

Who even sorted this?

  • Best score: 13
  • Best player score: 13
  • Position: #20 / 65
  • Number of attempts: 6
Learn to ask for :help - 587 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 24
  • Position: #41 / 130
  • Number of attempts: 5
Lowercase first characters - 486 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 36
  • Position: #75 / 182
  • Number of attempts: 2
Add fold markers to a .c file - 602 entries

Fold markers can make it easier to navigate source code. Add them to this .c file.

  • Best score: 30
  • Best player score: 35
  • Position: #98 / 178
  • Number of attempts: 4
Leon Katsnelson
Github:

entered into 30 challenges

contributed 0 challenges