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 @wangjunal:

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

2959 active golfers, 10449 entries

Solutions by @wangjunal:
10
#280 - alixwang / @wangjunal

11/09/2019 at 03:01PM

10
#>280 - alixwang / @wangjunal

11/09/2019 at 03:01PM

10
#>280 - alixwang / @wangjunal

11/09/2019 at 03:02PM

11
#>1088 - alixwang / @wangjunal

11/09/2019 at 02:55PM

11
#>1088 - alixwang / @wangjunal

11/09/2019 at 02:56PM

11
#>1088 - alixwang / @wangjunal

11/09/2019 at 02:57PM

11
#>1088 - alixwang / @wangjunal

11/09/2019 at 02:59PM

11
#>1088 - alixwang / @wangjunal

11/09/2019 at 03:00PM

11
#>1552 - alixwang / @wangjunal

10/03/2020 at 04:15PM

12
#>1745 - alixwang / @wangjunal

11/09/2019 at 02:55PM

13
#>1913 - alixwang / @wangjunal

11/09/2019 at 02:52PM

13
#>1913 - alixwang / @wangjunal

11/09/2019 at 02:53PM

14
#>2070 - alixwang / @wangjunal

10/03/2020 at 04:13PM

16
#>2322 - alixwang / @wangjunal

11/09/2019 at 02:46PM

16
#>2322 - alixwang / @wangjunal

11/09/2019 at 02:47PM

16
#>2322 - alixwang / @wangjunal

11/09/2019 at 02:54PM

16
#>2406 - alixwang / @wangjunal

10/03/2020 at 04:13PM

17
#>2455 - alixwang / @wangjunal

11/09/2019 at 02:43PM

18
#>2564 - alixwang / @wangjunal

11/09/2019 at 02:32PM

18
#>2564 - alixwang / @wangjunal

11/09/2019 at 02:35PM

18
#>2564 - alixwang / @wangjunal

11/09/2019 at 02:45PM

18
#>2609 - alixwang / @wangjunal

10/03/2020 at 04:12PM

19
#>2643 - alixwang / @wangjunal

11/09/2019 at 02:29PM

23
#>2773 - alixwang / @wangjunal

11/09/2019 at 02:36PM

23
#>2773 - alixwang / @wangjunal

11/09/2019 at 02:49PM

26
#>2817 - alixwang / @wangjunal

11/09/2019 at 02:31PM

51
#>2932 - alixwang / @wangjunal

11/09/2019 at 02:35PM

62
#>2937 - alixwang / @wangjunal

11/09/2019 at 02:27PM