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

New teacher - 923 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 23
  • Position: #58 / 194
  • Number of attempts: 4
Paste a column after a column - 2537 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 17
  • Position: #221 / 553
  • Number of attempts: 15
delete swap - 1786 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #336 / 555
  • Number of attempts: 1
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: 36
  • Position: #84 / 271
  • Number of attempts: 5
Fix the shell script! - 2544 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #121 / 589
  • Number of attempts: 10
Visual block training - 1070 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 36
  • Position: #108 / 204
  • Number of attempts: 4
hello-world-vimgolf - 2499 entries

Simple number generation

  • Best score: 10
  • Best player score: 13
  • Position: #499 / 708
  • Number of attempts: 1
Modernise code - 1400 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #71 / 323
  • Number of attempts: 7
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: #36 / 236
  • Number of attempts: 8
Python: Def to Lambda - 455 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #86 / 156
  • Number of attempts: 1
Rural Post - 4479 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #477 / 1097
  • Number of attempts: 9
Satisfy the go linter - 2391 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: #164 / 471
  • Number of attempts: 8
Add quotes to ansible playbook - 954 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #212 / 305
  • Number of attempts: 3
Multiline to Single Line - 700 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #250 / 302
  • Number of attempts: 1
Replace pattern with 1, 2, 3, ... on each line - 1146 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 22
  • Position: #90 / 229
  • Number of attempts: 8
prepend * to every non-blank line - 6308 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #443 / 1537
  • Number of attempts: 6
Quote modules - 1084 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 23
  • Position: #98 / 281
  • Number of attempts: 5
SCREAMING_SNAKE_CASE to Title Case - 1214 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 48
  • Position: #237 / 249
  • Number of attempts: 1
Simple text editing with Vim - 12811 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1989 / 3694
  • Number of attempts: 7
tk555
Twitter2:

プログラミングとかの垢 ./AtCoder/Codeforces/CodinGame/全部ID:tk555

entered into 19 challenges

contributed 0 challenges