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 by @DakshaChatur:

Unlock 22 remaining solutions by signing in and submitting your own entry
Created by: @koern82

3044 active golfers, 10792 entries

Solutions by @DakshaChatur:
10
#743 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:58AM

11
#>1756 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:56AM

11
#>1756 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:56AM

12
#>1935 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:55AM

13
#>2066 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:54AM

14
#>2156 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:53AM

15
#>2338 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:52AM

16
#>2509 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:51AM

17
#>2594 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:50AM

18
#>2700 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:49AM

21
#>2829 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:48AM

22
#>2850 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:43AM

22
#>2850 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:47AM

23
#>2873 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:41AM

24
#>2890 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:39AM

25
#>2897 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:34AM

25
#>2897 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:37AM

26
#>2911 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:28AM

27
#>2921 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:06AM

27
#>2921 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:13AM

28
#>2943 - Daksha Chatur / @DakshaChatur

09/09/2022 at 09:12PM

28
#>2943 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:26AM