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

3063 active golfers, 10852 entries

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

09/11/2022 at 01:58AM

11
#>1759 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:56AM

11
#>1759 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:56AM

12
#>1948 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:55AM

13
#>2080 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:54AM

14
#>2170 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:53AM

15
#>2353 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:52AM

16
#>2524 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:51AM

17
#>2609 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:50AM

18
#>2715 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:49AM

21
#>2844 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:48AM

22
#>2865 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:43AM

22
#>2865 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:47AM

23
#>2889 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:41AM

24
#>2906 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:39AM

25
#>2913 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:34AM

25
#>2913 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:37AM

26
#>2927 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:28AM

27
#>2937 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:06AM

27
#>2937 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:13AM

28
#>2959 - Daksha Chatur / @DakshaChatur

09/09/2022 at 09:12PM

28
#>2959 - Daksha Chatur / @DakshaChatur

09/11/2022 at 01:26AM