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 5cf62aa56c09760009d6b2f3

Add semicolons

Simply add a semicolon at the end of each line

Start file
 super.onCreate(savedInstanceState)
 setContentView(R.layout.activity_second)
 Intent intent = getIntent()
 String text = intent.getStringExtra("text")

 TextView view = findViewById(R.id.textView2)
 view.setText(text)
End file
 super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_second);
 Intent intent = getIntent();
 String text = intent.getStringExtra("text");

 TextView view = findViewById(R.id.textView2);
 view.setText(text);

View Diff

1,4c1,4
<  super.onCreate(savedInstanceState)
<  setContentView(R.layout.activity_second)
<  Intent intent = getIntent()
<  String text = intent.getStringExtra("text")
---
>  super.onCreate(savedInstanceState);
>  setContentView(R.layout.activity_second);
>  Intent intent = getIntent();
>  String text = intent.getStringExtra("text");
6,7c6,7
<  TextView view = findViewById(R.id.textView2)
<  view.setText(text)
\ No newline at end of file
---
>  TextView view = findViewById(R.id.textView2);
>  view.setText(text);
\ No newline at end of file

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 1293 remaining solutions by signing in and submitting your own entry
#1294 @-----{} / @DavidAr99288709 - Score: 183 - 09/05/19 @ 14:04
$i;<BS><Esc><Right><Right>I<Esc><Down><Down><Left><Left><Up><Up><Down><Down><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Up><Right><Right><Right><Right><Right><Up><Up><Down><Up><Up><Up><Left><Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><CR><Up><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>i<Right>;<Down><Right><Right><Right><Right><Right>;<Down>l;<BS><BS>;<Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>;<Down><Down>;<Down>;<Esc>:wq!<CR>

0 comments


Created by: @koern82

1294 active golfers, 4831 entries

Leaderboard (lowest score wins):
11
#601 - warwickrulez / @warwickrulez

09/15/2019 at 06:47PM

11
#602 - Ollin Boer Bohan / @madebyollin

09/15/2019 at 07:11PM

11
#603 - Honza UhlĂ­k / @JanUhlik

09/16/2019 at 06:58AM

11
#604 - Andrey / @andreyrmg

09/16/2019 at 02:03PM

11
#605 - Pogues 123 / @123Pogues

09/16/2019 at 07:45PM

11
#606 - Cassandra / @kascein

09/17/2019 at 07:49AM

11
#607 - Francisco Romero / @PanchoopRomero

09/17/2019 at 11:16PM

11
#608 - Ariel Miculas / @ArielMiculas

09/18/2019 at 11:51AM

11
#609 - Phrasendroschke / @phrasendroschke

09/18/2019 at 01:25PM

11
#610 - Luca db / @cyan_pencil

09/19/2019 at 08:51PM

11
#611 - Clmi / @c_decaf

09/21/2019 at 09:13AM

11
#612 - Sebin Babu / @sarcasticbabu

09/24/2019 at 06:52AM

11
#613 - Adrien / @beudbeud

09/24/2019 at 11:50AM

11
#614 - Lorenzo Bertolino / @lo_bertolino

09/25/2019 at 09:29AM

11
#615 - m1t0z / @m1t0z1

09/25/2019 at 06:38PM

11
#616 - Trapier Marshall / @aoeuser

09/26/2019 at 12:21AM

11
#617 - James Pruitt / @JamesPr28700532

09/26/2019 at 09:02AM

11
#618 - Xiang / @hixjiang

09/26/2019 at 06:01PM

11
#619 - Chen-Hung Wu / @utah12005

09/27/2019 at 03:11AM

11
#620 - Pieter Kuijpers / @pieterpiq

09/27/2019 at 09:07AM

11
#621 - NeoVimEmacs / @VimNeo

09/27/2019 at 01:04PM

11
#622 - Benjamin Pelletier / @benjipelletier

09/27/2019 at 02:02PM

11
#623 - cĂ­nicoycansino / @pgv958

09/27/2019 at 02:24PM

11
#624 - Thomas Edlich / @grumpybavarian

09/27/2019 at 08:21PM

11
#625 - Ben Carney / @ben_carney

09/28/2019 at 03:11PM

11
#626 - Adrian Craciun / @adi_craciun

09/30/2019 at 11:42AM

11
#627 - vimRunnerUp3000 / @VUp3000

09/30/2019 at 01:48PM

11
#628 - David Goldburg / @GoldburgDavid

09/30/2019 at 02:11PM

11
#629 - Jeff / @sir_wiggles3

10/01/2019 at 03:05AM

11
#630 - Rui Xue / @ruirayxue

10/01/2019 at 04:37AM