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

-a-b-c- - 2864 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 1
Delete to the end of the current line - 673 entries

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

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
One number per line - 16287 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Number of attempts: 3
Add semicolons - 7795 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 15
  • Number of attempts: 1
Split line with dots - 2007 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 21
  • Number of attempts: 2
Preferably without multi-cursor plugin - 364 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: 41
  • Number of attempts: 1
Join 'em - 191 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Number of attempts: 3
switch variable - 4614 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 1
That hyphen - 2376 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 13
  • Number of attempts: 2
Switch function arguments - 1884 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
Applying same text modification in several lines - 2388 entries

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

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 1
I forgot quotes - 14300 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Number of attempts: 2
remove lines containing the word "reader" - 2826 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 4
abcd > a b c d - 248 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 1
V to the i - 4341 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
Jason Chen
Twitter:

entered into 15 challenges

contributed 0 challenges