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

2284 active golfers, 8245 entries

Leaderboard (lowest score wins):
10
#301 - Andreas Holck Høeg-P / @andreashhp

11/22/2019 at 02:31PM

10
#302 - afk / @Allan_FK

11/22/2019 at 04:11PM

10
#303 - Peter Steffey / @ps_iclimbthings

11/23/2019 at 02:35AM

10
#304 - bassnecter / @lothedr

11/23/2019 at 07:10AM

10
#305 - Travis Abram / @imaginal

11/23/2019 at 11:46PM

10
#306 - zlogan / @zlogan2003

11/24/2019 at 02:32AM

10
#307 - Przemysław Michalak / @dambusio

11/24/2019 at 09:58AM

10
#308 - oldandslow / @oldandslow5

11/25/2019 at 01:38PM

10
#309 - Mike Beattie / @mjbnz

11/26/2019 at 06:44AM

10
#310 - Jérémy Autran / @jjautran

11/26/2019 at 09:31AM

10
#311 - Scott Myц / @ScottMuc

11/26/2019 at 10:52AM

10
#312 - Eviber / @youvaaaaa

11/26/2019 at 02:39PM

10
#313 - Shaw C. / @Xiao_SCKii

11/29/2019 at 10:28AM

10
#314 - jan Kise / @jan_kise

11/29/2019 at 12:33PM

10
#315 - bruiser / @bruiserwins

11/30/2019 at 12:03AM

10
#316 - およねさん / @yuukikun31

12/01/2019 at 02:53AM

10
#317 - Eric Johnson / @dej79

12/02/2019 at 08:47PM

10
#318 - David Barker / @dashleybarker

12/02/2019 at 11:26PM

10
#319 - Paweł Samoraj / @samorajp

12/03/2019 at 03:26PM

10
#320 - David Ritchie / @deritchie

12/03/2019 at 10:24PM

10
#321 - Erik Peterson / @subwindow

12/05/2019 at 12:45AM

10
#322 - Jonathan Jeffrey / @projjects

12/05/2019 at 03:58AM

10
#323 - Hector Ricardo / @Hector_Ricardo3

12/05/2019 at 06:57AM

10
#324 - Pierre Balayé / @PierreBalaye

12/06/2019 at 03:54PM

10
#325 - Sergi Castro / @sergicastro2001

12/08/2019 at 03:43PM

10
#326 - apechinsky / @apechinsky

12/08/2019 at 07:32PM

10
#327 - Tefe / @tefetic

12/09/2019 at 09:23PM

10
#328 - Jacques / @jpmarcotte

12/09/2019 at 11:41PM

10
#329 - 이종혁 / @BluePaisa

12/10/2019 at 05:04AM

10
#330 - Korbinian Stoemmer / @PaulSmecker

12/11/2019 at 08:29AM