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

942 active golfers, 3453 entries

Leaderboard (lowest score wins):
10
#91 - Adam Katz / @AdamKat01277576

07/17/2019 at 11:32AM

10
#92 - taka / @takaoutputblog

07/18/2019 at 02:02PM

10
#93 - James Raubenheimer / @jamzrob

07/18/2019 at 07:44PM

10
#94 - Philip Stephenson / @philip_iv

07/19/2019 at 08:38PM

10
#95 - Jure Zbontar / @jure_zbontar

07/20/2019 at 01:54AM

10
#96 - FreeTheBSD / @FreeTheBSD

07/20/2019 at 02:42AM

10
#97 - joseph.cheng / @josephc89207523

07/20/2019 at 03:11AM

10
#98 - Manan Khattar / @KhattarManan

07/20/2019 at 10:04AM

10
#99 - fisch@emacs / @WingsORC

07/20/2019 at 02:56PM

10
#100 - heppen / @heppen_He

07/22/2019 at 11:12AM

10
#101 - Joe Fahnestock🌵 / @Joecupojoe

07/22/2019 at 06:28PM

10
#102 - Rasmus Öhman Bruno / @rasmohman

07/22/2019 at 07:30PM

10
#103 - ぽんぽこ / @ponpoko2342

07/23/2019 at 09:58AM

10
#104 - Nishant Dania / @nishantdania

07/23/2019 at 12:17PM

10
#105 - band / @band26376522

07/24/2019 at 08:36PM

10
#106 - Tri Le / @Tri_Le

07/25/2019 at 11:00PM

10
#107 - Markus / @ARealAnnoyance

07/26/2019 at 03:26PM

10
#108 - Zhenkai W. / @Zhenkai_W

07/26/2019 at 04:01PM

10
#109 - matt.boyer / @mattboy54261877

07/26/2019 at 08:18PM

10
#110 - entitled millennial / @PythonBro

07/26/2019 at 09:23PM

10
#111 - kokiteru / @hommakoki

07/27/2019 at 04:59AM

10
#112 - Alex Warner / @AWarner_18

07/27/2019 at 01:32PM

10
#113 - Danny T / @son_of_torkel

07/28/2019 at 09:02PM

10
#114 - a1ph4 / @a1ph4g33k

07/29/2019 at 08:41AM

10
#115 - Himavanth Reddy / @Himavanth1909

07/29/2019 at 09:02AM

10
#116 - Mark / @markfilus

07/29/2019 at 05:55PM

10
#117 - Ron Holt / @ron_holt

07/30/2019 at 01:38AM

10
#118 - Hayden Wang / @HaydenWang2

07/30/2019 at 06:50AM

10
#119 - Harsha Nadimpalli / @Harsha_live

07/31/2019 at 06:02AM

10
#120 - XiaoXiaoLui / @XiaoXiaoLui1

07/31/2019 at 04:43PM