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

2989 active golfers, 10545 entries

Leaderboard (lowest score wins):
10
#661 - Jakub Wagner / @Jakub1019

10/22/2020 at 10:12AM

10
#662 - Anier Velasco Sotomayor / @VelascoAnier

10/23/2020 at 01:44PM

10
#663 - Rodrigo Santa Cruz / @rstcruzo

10/24/2020 at 06:24AM

10
#664 - wilsonept / @wilsonept1

10/24/2020 at 04:03PM

10
#665 - dadams2 / @dadams217

10/30/2020 at 02:24PM

10
#666 - Sven H. / @mostley

10/30/2020 at 05:21PM

10
#667 - daniao / @dan1ao

11/01/2020 at 11:56AM

10
#668 - MathijsHoogland / @MathijsHoogland

11/01/2020 at 02:05PM

10
#669 - Joseph Simone / @averagejoey2000

11/02/2020 at 11:23PM

10
#670 - Cornelius Roemer / @CorneliusRoemer

11/04/2020 at 07:12PM

10
#671 - quemeraisc / @quemeraisc

11/05/2020 at 09:10AM

10
#672 - Jacques Donnelly / @Donnll

11/08/2020 at 01:13PM

10
#673 - 이준희 / @0AKl2TLu2sjExmj

11/08/2020 at 02:30PM

10
#674 - Andreas Siegrist / @andreaszwei

11/10/2020 at 10:52AM

10
#675 - Rickard Natt och Dag / @rnattochdag

11/12/2020 at 09:58AM

10
#676 - Arjun Mishra / @Colhodm

11/15/2020 at 09:29PM

10
#677 - Lashoun / @lashoun42

11/17/2020 at 03:10PM

10
#678 - CAMARASA Robin / @CamarasaRobin

11/22/2020 at 06:07PM

10
#679 - Andrew Lewis / @droosec

11/23/2020 at 09:36PM

10
#680 - Hugh / @haquaman

11/24/2020 at 03:08AM

10
#681 - Noise Official / @zmunk19

11/24/2020 at 02:17PM

10
#682 - hepebexè / @hepebexe

11/24/2020 at 08:54PM

10
#683 - Kha Nguyen / @__ngtrongkha

11/25/2020 at 09:09AM

10
#684 - Andreas Näsman / @andreas_nasman

11/26/2020 at 08:26PM

10
#685 - Jordan Joe Watson / @jordanjoewatson

12/01/2020 at 08:22PM

10
#686 - Jonathan Ketner / @Chariotrunner

12/03/2020 at 03:30AM

10
#687 - Dax / @zacoxi

12/04/2020 at 08:08AM

10
#688 - — / @Cenarius

12/07/2020 at 01:13AM

10
#689 - f a / @5eraf

12/07/2020 at 05:17PM

10
#690 - Ryan Way / @RyanWay16

12/09/2020 at 12:14AM