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

Put a newline after every 10 lines in vim - 1078 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #56 / 372
  • Number of attempts: 6
Rural Post - 4138 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Position: #296 / 1023
  • Number of attempts: 3
prepend * to every non-blank line - 6030 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #283 / 1477
  • Number of attempts: 4
One number per line - 18426 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #516 / 3799
  • Number of attempts: 6
Swap values inside brackets - 2437 entries

Easy challenge.

  • Best score: 14
  • Best player score: 16
  • Position: #208 / 562
  • Number of attempts: 2
remove lines containing the word "reader" - 3475 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #181 / 1125
  • Number of attempts: 3
Box it - 7685 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #73 / 1837
  • Number of attempts: 3
html paragraph to table - 583 entries

reformat html paragraph to table

  • Best score: 48
  • Best player score: 48
  • Position: #1 / 121
  • Number of attempts: 4
Number Sort - 291 entries

sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing

  • Best score: 9
  • Best player score: 9
  • Position: #8 / 155
  • Number of attempts: 1
Delete to the end of the current line - 715 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 5
  • Position: #122 / 350
  • Number of attempts: 1
Ítalo Vieira
Twitter:

entered into 10 challenges

contributed 0 challenges