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 - 1676 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: 25
  • Position: #232 / 369
  • Number of attempts: 1
Find fix point of cos - 1169 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: #109 / 355
  • Number of attempts: 4
Surround the 'z' character with brackets, quotes, and print as formatted string. - 497 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #68 / 281
  • 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: 17
  • Position: #197 / 514
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1214 entries

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

  • Best score: 29
  • Best player score: 53
  • Position: #188 / 254
  • Number of attempts: 1
Fix the shell script! - 2399 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 31
  • Position: #237 / 556
  • Number of attempts: 1
Visual block training - 1041 entries

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

  • Best score: 17
  • Best player score: 35
  • Position: #99 / 192
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1628 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #290 / 542
  • Number of attempts: 3
hello-world-vimgolf - 2411 entries

Simple number generation

  • Best score: 10
  • Best player score: 21
  • Position: #603 / 686
  • Number of attempts: 1
Satisfy the go linter - 2350 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 33
  • Position: #381 / 462
  • Number of attempts: 1
Aiden Yang
Twitter:

entered into 10 challenges

contributed 0 challenges