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

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

  • Best score: 10
  • Best player score: 16
  • Position: #1034 / 1557
  • Number of attempts: 1
One number per line - 18840 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1881 / 3893
  • Number of attempts: 5
V to the i - 4833 entries

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

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

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

  • Best score: 12
  • Best player score: 13
  • Position: #136 / 864
  • Number of attempts: 2
Add semicolons - 10923 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Position: #2311 / 3087
  • Number of attempts: 1
remove lines containing the word "reader" - 3631 entries

easy stuff

  • Best score: 9
  • Best player score: 11
  • Position: #902 / 1179
  • Number of attempts: 1
Box it - 7987 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #846 / 1895
  • Number of attempts: 2
Cool or not? - 852 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 17
  • Position: #129 / 234
  • Number of attempts: 1
Two pairs of cluster of letters creates word - 767 entries

Clean and group.

  • Best score: 17
  • Best player score: 19
  • Position: #99 / 180
  • Number of attempts: 2
Preferably without multi-cursor plugin - 557 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: #88 / 133
  • Number of attempts: 1
Just the middle - 11555 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2829 / 4234
  • Number of attempts: 1
One to Ten - 2243 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
  • Position: #89 / 683
  • Number of attempts: 2
I forgot quotes - 16127 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1850 / 4208
  • Number of attempts: 1
Resort and deup a CSV list - 184 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 / 45
  • Number of attempts: 3
Rand Omperson
Twitter:

entered into 14 challenges

contributed 0 challenges