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):
11
#1021 - Ben Carney / @ben_carney

09/28/2019 at 03:11PM

11
#1022 - Adrian Craciun / @adi_craciun

09/30/2019 at 11:42AM

11
#1023 - vimRunnerUp3000 / @VUp3000

09/30/2019 at 01:48PM

11
#1024 - David Goldburg / @GoldburgDavid

09/30/2019 at 02:11PM

11
#1025 - Jeff / @sir_wiggles3

10/01/2019 at 03:05AM

11
#1026 - Rui Xue / @ruirayxue

10/01/2019 at 04:37AM

11
#1027 - Albert / @Write_Code

10/01/2019 at 02:24PM

11
#1028 - M Rais Fathin M / @raisfathin

10/01/2019 at 05:27PM

11
#1029 - Daniel Brix / @danielbrix3

10/02/2019 at 10:27AM

11
#1030 - Victor Nițu / @vnitzu

10/03/2019 at 01:35PM

11
#1031 - Howl / @Howlxx55

10/04/2019 at 03:27PM

11
#1032 - gigorok / @gigorok

10/04/2019 at 06:36PM

11
#1033 - Moye_ / @moye_

10/06/2019 at 02:03PM

11
#1034 - César Cordeiro Rosa / @csrcordeiro

10/08/2019 at 12:41AM

11
#1035 - Devistator / @Devistator5

10/08/2019 at 05:57AM

11
#1036 - Stephen Westhead / @CraziCrow

10/08/2019 at 09:17AM

11
#1037 - Jeremy Griffin / @jerrymcgriffo

10/09/2019 at 06:06AM

11
#1038 - Soptik / @Soptik3

10/10/2019 at 08:11PM

11
#1039 - Zviad Mgaloblishvili / @ZMgaloblishvili

10/10/2019 at 08:21PM

11
#1040 - Sam O'Malley / @Samuel_OMalley

10/11/2019 at 01:49PM

11
#1041 - Erik Engstrom / @eengstrom

10/11/2019 at 10:07PM

11
#1042 - Vladimir Leskov / @vladimirlesk

10/12/2019 at 11:17AM

11
#1043 - hygxsh2k / @hygxsh2k

10/13/2019 at 08:16AM

11
#1044 - ErQ325 / @EQ325

10/13/2019 at 10:03AM

11
#1045 - Slimior / @Slimior

10/15/2019 at 12:30AM

11
#1046 - Saher El-Neklawy / @saherneklawy

10/15/2019 at 12:51PM

11
#1047 - Alex Schultz / @Pumpkinhead002

10/15/2019 at 08:47PM

11
#1048 - Scott Rosenquist / @scottrosenquist

10/17/2019 at 09:44PM

11
#1049 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:39AM

11
#1050 - Dantes / @YoManu513_

10/18/2019 at 06:15PM