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 975 remaining solutions by signing in and submitting your own entry
#976 @-----{} / @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

976 active golfers, 3572 entries

Leaderboard (lowest score wins):
13
#631 - Andy Gnias / @GniTheSciGuy

06/22/2019 at 04:42PM

13
#632 - Rohit Kumar Jena / @rohitrango

07/01/2019 at 01:29PM

13
#633 - Diego Balseiro / @diegobalseiro

07/10/2019 at 02:37AM

13
#634 - Florent Uguet / @FlorentUguet

07/10/2019 at 09:08AM

13
#635 - Jeremy Jess / @jeremyjess19

07/11/2019 at 04:47PM

13
#636 - Rahul Dhir / @RahulDhir300

07/20/2019 at 07:08AM

13
#637 - Victor Litvin / @litvin_victor

07/20/2019 at 09:08PM

13
#638 - kamranyousaf / @kamranyousaf

07/20/2019 at 10:32PM

13
#639 - Karl Barrus / @klbarrus

07/21/2019 at 04:15AM

13
#640 - Alexey Chabunin / @achabunin

07/30/2019 at 12:05AM

13
#641 - Lukas Stratmann / @Lumpiluk

08/07/2019 at 12:30PM

13
#642 - Kota Mori / @KotaMori1

08/13/2019 at 10:38PM

13
#643 - Ben Allan / @hellobenallan

08/19/2019 at 01:35PM

13
#644 - Stefan Krist / @nerdyness_sk

08/20/2019 at 07:33AM

13
#645 - Guillaume leon / @Le_Zappellin

08/25/2019 at 08:29AM

13
#646 - Abiral Khanal / @abir4l

08/26/2019 at 05:11AM

13
#647 - 2xRon / @2cdotRon

08/26/2019 at 02:32PM

13
#648 - Alan Martins Silva / @alanfortlink

09/12/2019 at 06:43PM

13
#649 - James Wheeler / @uw_jwheel88

09/14/2019 at 06:29PM

13
#650 - majuscule / @majuscule13

09/24/2019 at 08:50PM

13
#651 - Gabe Pohl-Zaretsky / @Gabe_PZ

09/26/2019 at 06:54PM

13
#652 - Elton Kamami / @pixel_grid

09/27/2019 at 07:38PM

13
#653 - Justin / @JustinVecchioni

10/02/2019 at 01:45AM

13
#654 - Josefina Alconada / @jochiAlconada

10/03/2019 at 08:25AM

13
#655 - Igor Czerwinski / @igoratron

10/04/2019 at 01:41PM

13
#656 - Anton / @toxahak

10/10/2019 at 12:13PM

13
#657 - steve bolo / @steve_bolo

10/11/2019 at 08:17PM

13
#658 - Marc / @Fusselgesicht

10/13/2019 at 11:34PM

13
#659 - Max Williams / @notmaxbutmax

10/15/2019 at 10:48PM

13
#660 - malte0811 / @malte0811

10/16/2019 at 06:51PM