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

2632 active golfers, 9365 entries

Leaderboard (lowest score wins):
10
#391 - yhetsugiHMC / @yhetsugi

01/27/2020 at 01:35AM

10
#392 - Quentin Plazar / @QuentinPlazar

01/27/2020 at 07:28AM

10
#393 - Aaron Dettmann / @AaronDettmann

01/29/2020 at 06:50PM

10
#394 - Golfer9001 / @golfer9001

01/31/2020 at 12:47AM

10
#395 - Xiangzhuo Meng / @MengXiangzhuo

02/01/2020 at 05:45AM

10
#396 - Aníbal / @anibal10

02/01/2020 at 06:12PM

10
#397 - Bachelor / @bachelorwang

02/02/2020 at 04:15PM

10
#398 - Rager Florian / @FlorianRager

02/04/2020 at 07:18PM

10
#399 - おねさわ / @yama846

02/05/2020 at 03:41AM

10
#400 - Niko Kivelä / @Tovrleaf

02/05/2020 at 12:54PM

10
#401 - majo senf / @majo_senf

02/06/2020 at 03:57PM

10
#402 - Renns / @Renns95250521

02/07/2020 at 11:15PM

10
#403 - Anthony BERNARD / @TweetTontony

02/08/2020 at 09:56PM

10
#404 - Sir_Kosciej / @SKosciej

02/08/2020 at 10:17PM

10
#405 - Xor547 / @Xor547

02/09/2020 at 04:23PM

10
#406 - Jonathan Skeate / @jskeate

02/09/2020 at 07:41PM

10
#407 - Falafel Palapel / @falafelpalapel

02/11/2020 at 05:02PM

10
#408 - hwnd / @harlinwt

02/11/2020 at 07:00PM

10
#409 - jrddp / @jrddp0

02/12/2020 at 12:45AM

10
#410 - 骑空士阿为 / @wuwe19

02/12/2020 at 07:23AM

10
#411 - Максим Селиверстов / @max_developer

02/12/2020 at 08:50AM

10
#412 - LeGolfeurDu93 / @Du93Golfeur

02/13/2020 at 04:28PM

10
#413 - Greg Williams / @GregWill

02/13/2020 at 06:53PM

10
#414 - howanto / @ho_wan_

02/15/2020 at 07:02PM

10
#415 - vimgolf_tmp_1 / @1Vimgolf

02/16/2020 at 02:41PM

10
#416 - Mens Jender / @Todesshnizzle

02/16/2020 at 06:21PM

10
#417 - Emil / @emilklindt

02/16/2020 at 09:05PM

10
#418 - Oleg / @colega

02/17/2020 at 10:05PM

10
#419 - dinodevito / @dinodevito1

02/18/2020 at 03:02AM

10
#420 - Ard / @kokojarjar

02/18/2020 at 09:30AM