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 638 remaining solutions by signing in and submitting your own entry
#639 Mayank Padshala / @MayankPadshala - Score: 112 - 07/22/19 @ 16:30
<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>;r<Right><Right>;<Down><Down><Down><Down><Down><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>i<Right>;<Down><Right><Right><Right><Right><Right>;<Down>;<Right><Down><Down><Left><Left><Right><Right><Up><Up><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>;<Down><Down>;<Down>;:<BS><Esc>:wq<CR>

0 comments


Created by: @koern82

639 active golfers, 2263 entries

Leaderboard (lowest score wins):
10
#121 - Turkey Man / @lvturkeyman

08/01/2019 at 05:21AM

10
#122 - Lucas Javaudin / @LucasJavaudin

08/01/2019 at 07:32PM

10
#123 - flummox / @flummox16

08/02/2019 at 01:32AM

10
#124 - Andreas Hübner / @hyperbolicus140

08/03/2019 at 09:59AM

10
#125 - Chloe Adeline / @SimpleRabbit

08/04/2019 at 03:11AM

10
#126 - George Sofianos / @GeoSofianos

08/04/2019 at 07:45PM

10
#127 - Hubert Chen / @Chubbert21

08/04/2019 at 11:50PM

10
#128 - majestic sloth / @SamLlama

08/05/2019 at 07:34AM

10
#129 - Brian Li / @BriungRi

08/06/2019 at 07:02AM

10
#130 - 张忠荣 / @ZZRcooperation

08/06/2019 at 08:56AM

10
#131 - OldSchoolRunescapeGuide / @SmellsonM

08/06/2019 at 08:16PM

10
#132 - DrHobo / @_DrHobo_

08/07/2019 at 01:16AM

10
#133 - sooqua / @sooqua

08/07/2019 at 05:18AM

10
#134 - Martin Delille / @martinodelilo

08/07/2019 at 02:37PM

10
#135 - Hengzhao Hong / @hhz20009

08/07/2019 at 03:28PM

10
#136 - Matthias K / @outaphase

08/07/2019 at 09:06PM

10
#137 - ʀǟɦʊʟ ɮɦօʟǟ / @theRahulBhola

08/08/2019 at 03:00PM

10
#138 - NieDżejkob / @NieDzejkob

08/08/2019 at 10:45PM

10
#139 - Frank Malone / @FrankMa00268686

08/09/2019 at 01:11PM

10
#140 - Luiz Eduardo Amaral / @_luxedo

08/09/2019 at 04:12PM

10
#141 - Fritz Inf / @6360info

08/10/2019 at 02:01PM

10
#142 - Titouan Teyssier / @TitouanT_

08/10/2019 at 08:54PM

10
#143 - vimgolfuser123 / @vimgolfuser123

08/13/2019 at 03:07AM

10
#144 - Will Durney / @WillDurney

08/13/2019 at 06:39PM

10
#145 - Moritz Manner / @moritz_manner

08/13/2019 at 08:59PM

10
#146 - Zane / @Zane19489481

08/15/2019 at 02:54PM

10
#147 - nlfrocks / @nlfrocks

08/16/2019 at 05:36AM

10
#148 - Gasol Wu / @gasolwu

08/16/2019 at 08:09AM

10
#149 - 🐄 / @cow_emoji

08/16/2019 at 08:40PM

10
#150 - Adam Hartz / @awareofnow

08/17/2019 at 07:30PM