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

3064 active golfers, 10860 entries

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

11/09/2019 at 03:01PM

10
#>279 - alixwang / @wangjunal

11/09/2019 at 03:01PM

10
#>279 - alixwang / @wangjunal

11/09/2019 at 03:02PM

11
#>1126 - alixwang / @wangjunal

11/09/2019 at 02:55PM

11
#>1126 - alixwang / @wangjunal

11/09/2019 at 02:56PM

11
#>1126 - alixwang / @wangjunal

11/09/2019 at 02:57PM

11
#>1126 - alixwang / @wangjunal

11/09/2019 at 02:59PM

11
#>1126 - alixwang / @wangjunal

11/09/2019 at 03:00PM

11
#>1589 - alixwang / @wangjunal

10/03/2020 at 04:15PM

12
#>1821 - alixwang / @wangjunal

11/09/2019 at 02:55PM

13
#>1997 - alixwang / @wangjunal

11/09/2019 at 02:52PM

13
#>1997 - alixwang / @wangjunal

11/09/2019 at 02:53PM

14
#>2155 - alixwang / @wangjunal

10/03/2020 at 04:13PM

16
#>2414 - alixwang / @wangjunal

11/09/2019 at 02:46PM

16
#>2414 - alixwang / @wangjunal

11/09/2019 at 02:47PM

16
#>2414 - alixwang / @wangjunal

11/09/2019 at 02:54PM

16
#>2498 - alixwang / @wangjunal

10/03/2020 at 04:13PM

17
#>2549 - alixwang / @wangjunal

11/09/2019 at 02:43PM

18
#>2659 - alixwang / @wangjunal

11/09/2019 at 02:32PM

18
#>2659 - alixwang / @wangjunal

11/09/2019 at 02:35PM

18
#>2659 - alixwang / @wangjunal

11/09/2019 at 02:45PM

18
#>2704 - alixwang / @wangjunal

10/03/2020 at 04:12PM

19
#>2740 - alixwang / @wangjunal

11/09/2019 at 02:29PM

23
#>2874 - alixwang / @wangjunal

11/09/2019 at 02:36PM

23
#>2874 - alixwang / @wangjunal

11/09/2019 at 02:49PM

26
#>2919 - alixwang / @wangjunal

11/09/2019 at 02:31PM

51
#>3036 - alixwang / @wangjunal

11/09/2019 at 02:35PM

62
#>3041 - alixwang / @wangjunal

11/09/2019 at 02:27PM