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

HS Final exam vimgolf - 182 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 34
  • Number of attempts: 5
Easy modification of ssh config - 62 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 24
  • Number of attempts: 6
Python: Def to Lambda - 84 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 3
Format the CSS - 38 entries

You just copied some CSS color names from the web and need to add them to your python module. Create the COLORS variable and assign a dict() with the names as keys and hex-colors as values. BEWARE OF THE TABS!!

  • Best score: 41
  • Best player score: 47
  • Number of attempts: 6
Rural Post - 2457 entries

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

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 8
Satisfy the go linter - 1162 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 20
  • Number of attempts: 14
Add quotes to ansible playbook - 319 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 5
xrandr outputs and dashes - 409 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 6
Get mail address from outlook format - 467 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 6
prepend * to every non-blank line - 5139 entries

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

  • Best score: 10
  • Best player score: 20
  • Number of attempts: 1
Add semicolons - 9572 entries

Simply add a semicolon at the end of each line

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

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 3
multiple cursor alternative - 1375 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 21
  • Number of attempts: 9
Array transposition - 2144 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 25
  • Number of attempts: 10
Copy three lines - 2672 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 12
One number per line - 17679 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 19
Vice versa - 7215 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 3
Simple, Practical, and Common - 32018 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: 19
Just the middle - 10891 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 10
I forgot quotes - 15248 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Number of attempts: 7
V to the i - 4523 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10391 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 2
Words in parens - 12439 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 11
switch variable - 4806 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 28
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 5745 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 47
  • Number of attempts: 1
MathijsHoogland
Twitter:

entered into 25 challenges

contributed 0 challenges