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

2990 active golfers, 10546 entries

Leaderboard (lowest score wins):
11
#871 - Jacob Degeling / @JacobDegeling

07/19/2019 at 01:39AM

11
#872 - Jonáš Šerých / @serycjon

07/19/2019 at 09:03PM

11
#873 - Richard Acosta / @accosting

07/20/2019 at 12:21AM

11
#874 - David Needham / @davidmneedham

07/20/2019 at 01:08AM

11
#875 - Bence Nagy / @underyx

07/20/2019 at 09:43AM

11
#876 - mmaorc / @mmaorc1

07/20/2019 at 11:56AM

11
#877 - Hxhxhrra / @hxhxhrra

07/20/2019 at 06:19PM

11
#878 - asdkljsadladlaldcxmzwqewq / @asdkljsadladla1

07/21/2019 at 07:25AM

11
#879 - codegeist / @code_geist

07/21/2019 at 01:02PM

11
#880 - Calum Halpin / @calumhalpin

07/21/2019 at 06:36PM

11
#881 - Maor Leger / @maor_leger

07/21/2019 at 06:48PM

11
#882 - Clint Caudle / @ClintCaudle

07/22/2019 at 03:01AM

11
#883 - vana / @vana15129217

07/22/2019 at 11:55AM

11
#884 - Robin Abrahamsson / @rqAbrahamsson

07/22/2019 at 07:09PM

11
#885 - Not real / @Notreal70353016

07/23/2019 at 04:13AM

11
#886 - Fan Zhang / @ffanzhang

07/23/2019 at 07:25AM

11
#887 - Hampus HAUFFMAN / @HampusHauffman

07/23/2019 at 07:56AM

11
#888 - towc / @MateiCopot

07/23/2019 at 07:12PM

11
#889 - Amir Hossein / @AmirHRAD8

07/23/2019 at 07:17PM

11
#890 - John Contad! / @JohnContad

07/24/2019 at 03:54AM

11
#891 - Colby Brown / @colbyabrown

07/26/2019 at 03:16PM

11
#892 - Przemek Kurek / @PrzemekKurek

07/26/2019 at 09:05PM

11
#893 - Peter Meehan / @22A

07/27/2019 at 04:45PM

11
#894 - Jonathan Browning / @yungjig90

07/29/2019 at 09:53PM

11
#895 - Ohan / @Br0han

07/30/2019 at 03:49AM

11
#896 - Silap Aliyev / @oaakx

07/30/2019 at 09:09AM

11
#897 - Pittson / @Pittson95

07/30/2019 at 07:41PM

11
#898 - David Elkouss / @d_elkouss

07/31/2019 at 07:11AM

11
#899 - Robinson Bernand / @RobynBekouz

07/31/2019 at 08:18AM

11
#900 - John / @JohnJDoe2

07/31/2019 at 10:59AM