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

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

  • Best score: 14
  • Best player score: 16
  • Position: #113 / 464
  • Number of attempts: 10
Reformat symbols in list - 1447 entries

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

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

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #206 / 465
  • Number of attempts: 4
Generate a very basic Python constructor (fixed) - 1171 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 / 244
  • Number of attempts: 4
Visual block training - 954 entries

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

  • Best score: 17
  • Best player score: 19
  • Position: #50 / 176
  • Number of attempts: 13
Put a newline after every 10 lines in vim - 1554 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #161 / 518
  • Number of attempts: 4
hello-world-vimgolf - 2311 entries

Simple number generation

  • Best score: 10
  • Best player score: 12
  • Position: #411 / 653
  • Number of attempts: 7
Plotting some variables in python - 1543 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 / 329
  • Number of attempts: 14
Multiline to Single Line - 596 entries

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

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

Vim likes macros

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

fighting for life

entered into 10 challenges

contributed 0 challenges