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

Add semicolons - 8530 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10184 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
V to the i - 4427 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 4
Refactor typescript arrow function type - 215 entries

Make arrow function type less verbose and easier to read

  • Best score: 20
  • Best player score: 32
  • Number of attempts: 1
Simple addition - 249 entries

The right side of the equation is already there. We just need the left one now.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
Words in parens - 12152 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 5
Just the middle - 10565 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Vice versa - 6999 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 8
I forgot quotes - 14691 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 7
Whitespace, empty lines and tabs - 2728 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 11
Cool or not? - 677 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 2
C Reformatting - 665 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 32
  • Number of attempts: 7
Interweave two blocks of text - 522 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 3
Data reformat - 119 entries

Reformat this copy-paste data! #csv

  • Best score: 38
  • Best player score: 38
  • Number of attempts: 7
Hello ${world} - 254 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 24
  • Number of attempts: 4
Com(m)a Trouble - 2909 entries

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

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 6
multiple cursor alternative - 1360 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: 19
  • Number of attempts: 9
-a-b-c- - 2932 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 5
One number per line - 16908 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 9
Quote modules - 741 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 22
  • Number of attempts: 6
Change part of a function name in multiple occurrences - 559 entries

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 4
Nesting SASS - 240 entries

Move a block inside another block and indent it

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 2
Box it - 6584 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Number of attempts: 2
Array transposition - 2047 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 17
  • Number of attempts: 6
xrandr outputs and dashes - 330 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: 1
Change The Perspective - 36 entries

This is a go game recodes file(.sgf file, refer to http://www.red-bean.com/sgf/). It base on such a coordinate system: in vertical direction, is from top(farthest end) to bottom, mark as a,b,c,...,s(19*19 board); in horizontal direction, is from left to right, uses the same notations. For Example, the coordinate notation 'cq', is the position at the bottom-left corner(vertical coordinate first). The record is from one player's perspective. We need to change to another's, but we don't want to change coordinate system, let it keep top to bottom and left to right. so we have to change the coordinates, a <-> s, b <-> r,c <-> q, etc. the Position 'cq', as transformation, it will be 'qd'.

  • Best score: 33
  • Best player score: 54
  • Number of attempts: 1
prepend * to every non-blank line - 3795 entries

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

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 6
Applying same text modification in several lines - 2526 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 5
Every other line - 2564 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 8
Remember VimGolf Rules ! - 213 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
Simple, Practical, and Common - 30760 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: 10
Karol Łukaszewicz
Twitter:

entered into 31 challenges

contributed 0 challenges