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 - 1523 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 48
  • Position: #30 / 404
  • Number of attempts: 11
Reformat symbols in list - 1506 entries

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

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

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

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

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #175 / 436
  • Number of attempts: 4
delete swap - 1648 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #162 / 513
  • Number of attempts: 7
Generate a very basic Python constructor (fixed) - 1228 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 / 259
  • Number of attempts: 17
Put a newline after every 10 lines in vim - 1646 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #375 / 548
  • Number of attempts: 4
Contribute to keyboard mashing - 878 entries

Speak in tongues

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

The goal is to see the replacement commands in action.

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

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

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

Simple challenge to extract fields from a Python class

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

Modernise and clean up some C++ code.

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

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

  • Best score: 16
  • Best player score: 16
  • Position: #50 / 373
  • Number of attempts: 10
HS Final exam vimgolf - 892 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 / 234
  • Number of attempts: 8
Rural Post - 4425 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #457 / 1085
  • Number of attempts: 6
Applying same text modification in several lines - 2851 entries

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

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

Change Typescript enum so that it has string initializers.

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

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

  • Best score: 12
  • Best player score: 12
  • Position: #159 / 838
  • Number of attempts: 11
comment and uncomment code inline - 1074 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 / 316
  • Number of attempts: 9
Basic renumbering - 5605 entries

Renumbering Basic.

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

Little role switching.

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

There's something special about the input order.

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

AtCoder:緑 SU:M2 競プロ

entered into 23 challenges

contributed 0 challenges