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 - 2610 entries

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

  • Best score: 14
  • Best player score: 16
  • Position: #137 / 566
  • Number of attempts: 10
Reformat symbols in list - 1635 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #33 / 352
  • Number of attempts: 11
delete swap - 1814 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #206 / 565
  • Number of attempts: 4
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: 29
  • Position: #45 / 274
  • Number of attempts: 4
Visual block training - 1089 entries

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

  • Best score: 17
  • Best player score: 19
  • Position: #54 / 206
  • Number of attempts: 13
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: #166 / 559
  • Number of attempts: 4
hello-world-vimgolf - 2506 entries

Simple number generation

  • Best score: 10
  • Best player score: 12
  • Position: #451 / 713
  • Number of attempts: 7
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: 34
  • Position: #47 / 349
  • Number of attempts: 14
Multiline to Single Line - 737 entries

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

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

Vim likes macros

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

fighting for life

entered into 10 challenges

contributed 0 challenges