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

Simple, Practical, and Common - 24508 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Number of attempts: 3
simple format - 2607 entries

make it look better.

  • Best score: 20
  • Best player score: 20
  • Number of attempts: 2
Applying same text modification in several lines - 1561 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 1
html paragraph to table - 330 entries

reformat html paragraph to table

  • Best score: 7
  • Best player score: 51
  • Number of attempts: 6
One number per line - 12472 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 10
Swap values - 3483 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
One to Ten - 849 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 1
Lower cased and dashed strings - 46 entries

As I have to generate big fixtures files, I wanted to find a way to format input data the way described by start and end files. Especially the lower-cased-and-dashed ids Not so good to find a pure Vim way, that's why I submit this challenge ;)

  • Best score: 59
  • Best player score: 59
  • Number of attempts: 4
Add semicolons - 790 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 2
Around the clock - 81 entries

You'll want to use 2 special commands to complete this. If you haven't yet, read through 'input.txt', especially :help simple-changes

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 3
Com(m)a Trouble - 1623 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 5
Reorder the groups - 250 entries

Change the order so that the groups of fruit come before the vegetables.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 5
Array transposition - 1572 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 18
  • Number of attempts: 5
Remove quotes after first field - 67 entries

Remove the quotes around each field except for the first field.

  • Best score: 16
  • Best player score: 18
  • Number of attempts: 1
Joo Ming
Twitter:

entered into 14 challenges

contributed 0 challenges