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

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: 16
  • Position: #130 / 549
  • Number of attempts: 10
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: 24
  • Position: #33 / 345
  • Number of attempts: 11
delete swap - 1773 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #206 / 549
  • Number of attempts: 4
Generate a very basic Python constructor (fixed) - 1253 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: #45 / 271
  • Number of attempts: 4
Visual block training - 1069 entries

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

  • Best score: 17
  • Best player score: 19
  • Position: #53 / 203
  • Number of attempts: 13
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: #166 / 555
  • Number of attempts: 4
hello-world-vimgolf - 2494 entries

Simple number generation

  • Best score: 10
  • Best player score: 12
  • Position: #449 / 706
  • Number of attempts: 7
Plotting some variables in python - 1660 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: 34
  • Position: #47 / 347
  • Number of attempts: 14
Multiline to Single Line - 700 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #218 / 302
  • Number of attempts: 2
Increment, increment, increment.... - 677 entries

Vim likes macros

  • Best score: 10
  • Best player score: 79
  • Position: #403 / 405
  • Number of attempts: 1
黄高昂
Twitter:

fighting for life

entered into 10 challenges

contributed 0 challenges