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

prepend * to every non-blank line - 6401 entries

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

  • Best score: 7
  • Best player score: 16
  • Position: #1040 / 1566
  • Number of attempts: 1
One number per line - 18907 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1888 / 3907
  • Number of attempts: 5
V to the i - 4890 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Position: #643 / 1917
  • Number of attempts: 1
Applying same text modification in several lines - 2937 entries

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

  • Best score: 7
  • Best player score: 13
  • Position: #139 / 869
  • Number of attempts: 2
Add semicolons - 10966 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Position: #2323 / 3100
  • Number of attempts: 1
remove lines containing the word "reader" - 3661 entries

easy stuff

  • Best score: 7
  • Best player score: 11
  • Position: #910 / 1189
  • Number of attempts: 1
Box it - 8004 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #848 / 1902
  • Number of attempts: 2
Cool or not? - 881 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 17
  • Position: #131 / 237
  • Number of attempts: 1
Two pairs of cluster of letters creates word - 773 entries

Clean and group.

  • Best score: 17
  • Best player score: 19
  • Position: #100 / 182
  • Number of attempts: 2
Preferably without multi-cursor plugin - 584 entries

Originally asked as question on reddit by kpthunder: https://www.reddit.com/r/vim/comments/9fvsro/what_is_the_most_efficient_way_to_go_about/

  • Best score: 30
  • Best player score: 37
  • Position: #90 / 135
  • Number of attempts: 1
Just the middle - 11636 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2835 / 4262
  • Number of attempts: 1
One to Ten - 2261 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: 5
  • Best player score: 12
  • Position: #90 / 690
  • Number of attempts: 2
I forgot quotes - 16255 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1861 / 4229
  • Number of attempts: 1
Resort and deup a CSV list - 187 entries

I'm always adding items to a sorted list. There has to be a better way dedup and resort the lists. There are multiple lists with varying lengths to discourage manual sorting. Also Australia's animals are weird.

  • Best score: 44
  • Best player score: 60
  • Position: #29 / 47
  • Number of attempts: 3
Rand Omperson
Twitter:

entered into 14 challenges

contributed 0 challenges