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

YAML to dotenv - 975 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 16
  • Position: #8 / 213
  • Number of attempts: 14
Swap columns and transform to CSV format - 319 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 17
  • Position: #22 / 118
  • Number of attempts: 3
Rearrange array to single level - 1528 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 30
  • Position: #158 / 254
  • Number of attempts: 9
Quicksort - 2038 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: #61 / 452
  • Number of attempts: 9
Remove line numbers - 747 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: 12
  • Position: #44 / 200
  • Number of attempts: 6
Surround the 'z' character with brackets, quotes, and print as formatted string. - 570 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #170 / 319
  • Number of attempts: 1
Paste a column after a column - 2610 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #84 / 566
  • Number of attempts: 14
delete swap - 1809 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #304 / 564
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 1277 entries

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

  • Best score: 29
  • Best player score: 43
  • Position: #135 / 274
  • Number of attempts: 9
Put a newline after every 10 lines in vim - 1664 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #194 / 559
  • Number of attempts: 3
hello-world-vimgolf - 2506 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #304 / 713
  • Number of attempts: 5
Plotting some variables in python - 1671 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: 61
  • Position: #279 / 349
  • Number of attempts: 1
Inverting Lines - 1923 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #268 / 516
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 7252 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 10
  • Best player score: 42
  • Position: #1023 / 1790
  • Number of attempts: 6
BlockLune
Github:

entered into 14 challenges

contributed 0 challenges