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 exam question - 1578 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 48
  • Position: #31 / 416
  • Number of attempts: 11
Reformat symbols in list - 1607 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 24
  • Position: #25 / 345
  • Number of attempts: 12
Poorly indented Python comments - 1315 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 15
  • Position: #29 / 221
  • Number of attempts: 17
Many duplicates - 1443 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #178 / 467
  • Number of attempts: 4
delete swap - 1773 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #162 / 549
  • Number of attempts: 7
Generate a very basic Python constructor (fixed) - 1253 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 30
  • Position: #70 / 271
  • Number of attempts: 17
Put a newline after every 10 lines in vim - 1656 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #376 / 555
  • Number of attempts: 4
Contribute to keyboard mashing - 890 entries

Speak in tongues

  • Best score: 17
  • Best player score: 18
  • Position: #99 / 270
  • Number of attempts: 3
simple replacements - 1753 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #68 / 380
  • Number of attempts: 11
Inverting Lines - 1882 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #181 / 509
  • Number of attempts: 11
Python dataclasses - 1127 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #50 / 283
  • Number of attempts: 18
Modernise code - 1388 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #60 / 319
  • Number of attempts: 5
swap number pairs - 2066 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #50 / 377
  • Number of attempts: 10
HS Final exam vimgolf - 897 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: #30 / 236
  • Number of attempts: 8
Rural Post - 4468 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #459 / 1095
  • Number of attempts: 6
Applying same text modification in several lines - 2870 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #18 / 848
  • Number of attempts: 8
Add string initializers to an enum - 872 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 21
  • Position: #71 / 258
  • Number of attempts: 8
Com(m)a Trouble - 3796 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #159 / 860
  • Number of attempts: 11
comment and uncomment code inline - 1118 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 9
  • Position: #153 / 321
  • Number of attempts: 9
Basic renumbering - 5645 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #267 / 1263
  • Number of attempts: 16
Vice versa - 7903 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #609 / 2125
  • Number of attempts: 7
Order and join - 983 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Position: #79 / 259
  • Number of attempts: 5
Word frequency alignment - 290 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: #116 / 161
  • Number of attempts: 4
ky05uk3
Twitter:

AtCoder:緑 SU:M2 競プロ

entered into 23 challenges

contributed 0 challenges