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

Put a newline after every 10 lines in vim - 1668 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 11
  • Position: #56 / 561
  • Number of attempts: 4
Wikitext headings to markdown - 1014 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #13 / 211
  • Number of attempts: 8
hello-world-vimgolf - 2513 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #107 / 717
  • Number of attempts: 7
Plotting some variables in python - 1673 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 35
  • Position: #74 / 350
  • Number of attempts: 10
simple replacements - 1833 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #23 / 396
  • Number of attempts: 12
Python dataclasses - 1229 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #6 / 308
  • Number of attempts: 6
RUST Cargo.toml version to last - 378 entries

RUST Cargo.toml version to last. rusty practice on vimgolf

  • Best score: 16
  • Best player score: 16
  • Position: #9 / 104
  • Number of attempts: 7
Enumerate Bullets - 330 entries

We will need to refer to the bullet points in our document explicitly later, so we need to assign them some ID's!

  • Best score: 18
  • Best player score: 20
  • Position: #13 / 90
  • Number of attempts: 7
swap number pairs - 2146 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 16
  • Position: #29 / 390
  • Number of attempts: 9
HS Final exam vimgolf - 913 entries

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

  • Best score: 21
  • Best player score: 21
  • Position: #11 / 241
  • Number of attempts: 7
Easy modification of ssh config - 382 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 24
  • Position: #13 / 115
  • Number of attempts: 4
ssh config skills - 258 entries

Parse output from `kuebctl get no -o wide` into an .ssh/config file!

  • Best score: 41
  • Best player score: 55
  • Position: #30 / 66
  • Number of attempts: 4
Rural Post - 4572 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #154 / 1116
  • Number of attempts: 8
Satisfy the go linter - 2468 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
  • Position: #118 / 491
  • Number of attempts: 9
Add quotes to ansible playbook - 1030 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #33 / 325
  • Number of attempts: 7
Multiline to Single Line - 747 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #104 / 318
  • Number of attempts: 1
Data reformat - 304 entries

Reformat this copy-paste data! #csv

  • Best score: 36
  • Best player score: 38
  • Position: #13 / 66
  • Number of attempts: 8
xrandr outputs and dashes - 725 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
  • Position: #104 / 226
  • Number of attempts: 8
Capitalize the Names - 412 entries

I want to capitalize the names in quotes, but just the people's names, not the file names.

  • Best score: 21
  • Best player score: 21
  • Position: #25 / 98
  • Number of attempts: 7
Simple, Practical, and Common - 33866 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
  • Position: #2338 / 7474
  • Number of attempts: 9
prepend * to every non-blank line - 6366 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #811 / 1555
  • Number of attempts: 1
One number per line - 18831 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 23
  • Position: #3134 / 3889
  • Number of attempts: 1
Quote modules (ver.2) - 241 entries

Complete golang import statement.

  • Best score: 22
  • Best player score: 23
  • Position: #22 / 61
  • Number of attempts: 15
citizen_hacks_2019_challenge2 - 202 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Position: #47 / 104
  • Number of attempts: 2
Refactor typescript arrow function type - 339 entries

Make arrow function type less verbose and easier to read

  • Best score: 20
  • Best player score: 20
  • Position: #20 / 73
  • Number of attempts: 11
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1735 / 3085
  • Number of attempts: 5
Extract wireshark capture filter - 227 entries

Extract wireshark capture filter from IP plan

  • Best score: 25
  • Best player score: 25
  • Position: #3 / 75
  • Number of attempts: 3
Box it - 7962 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 29
  • Position: #1365 / 1891
  • Number of attempts: 1
Preferably without multi-cursor plugin - 549 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: 30
  • Position: #19 / 132
  • Number of attempts: 7
Number Sort - 319 entries

sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing

  • Best score: 9
  • Best player score: 9
  • Position: #120 / 170
  • Number of attempts: 2
Just the middle - 11541 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3170 / 4230
  • Number of attempts: 1
Learn some german verbs - 541 entries

The list needs to be structured so we can print in verbatim and feel ok about how it looks.

  • Best score: 21
  • Best player score: 21
  • Position: #49 / 134
  • Number of attempts: 6
Todo list specification - 405 entries

The every item on the todo list must be done today. Modify the list to reflect that.

  • Best score: 37
  • Best player score: 37
  • Position: #82 / 183
  • Number of attempts: 4
Subnetting - 131 entries

Split up the IP addresses in the right way.

  • Best score: 29
  • Best player score: 29
  • Position: #10 / 39
  • Number of attempts: 9
Basic renumbering - 5707 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 19
  • Position: #786 / 1274
  • Number of attempts: 1
create arrows in a list - 130 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 10
  • Position: #53 / 78
  • Number of attempts: 4
Vice versa - 7974 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1696 / 2146
  • Number of attempts: 2
Paragraph breaks - 527 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 10
  • Position: #40 / 168
  • Number of attempts: 7
Around the clock - 199 entries

You'll want to use 2 special commands to complete this. If you haven't yet, read through 'input.txt', especially :help simple-changes

  • Best score: 13
  • Best player score: 13
  • Position: #31 / 77
  • Number of attempts: 3
move titles next to url, in quotes - 551 entries

had trouble with something similar

  • Best score: 19
  • Best player score: 19
  • Position: #9 / 146
  • Number of attempts: 5
Simple format (2) - 335 entries

try again!

  • Best score: 23
  • Best player score: 23
  • Position: #14 / 70
  • Number of attempts: 8
I forgot quotes - 16093 entries

Oops.

  • Best score: 10
  • Best player score: 24
  • Position: #3976 / 4202
  • Number of attempts: 1
Suffix sort - 270 entries

Sort from the end of the line, as if the letters in each line were reversed.

  • Best score: 19
  • Best player score: 19
  • Position: #5 / 67
  • Number of attempts: 18
A HAPPY NEW YEAR 2014 ! - 10713 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 13
  • Position: #2627 / 3700
  • Number of attempts: 1
Word frequency alignment - 296 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Position: #107 / 163
  • Number of attempts: 5
Alphabet soup - 434 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 25
  • Position: #9 / 109
  • Number of attempts: 8
calculations - 313 entries

Complete these (weird) calculations.

  • Best score: 38
  • Best player score: 39
  • Position: #29 / 69
  • Number of attempts: 7
Simple text editing with Vim - 13273 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 30
  • Position: #3499 / 3811
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7415 entries

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

  • Best score: 7
  • Best player score: 74
  • Position: #1744 / 1825
  • Number of attempts: 1
Jianfeng
Twitter:

entered into 49 challenges

contributed 0 challenges