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

1178 active golfers, 4366 entries

Leaderboard (lowest score wins):
10
#241 - Mohit Gurumukhani / @mgurumuk

10/14/2019 at 09:47PM

10
#242 - Daniel Keast / @daniel_keast

10/15/2019 at 12:38PM

10
#243 - iphelf / @charon_leo

10/15/2019 at 02:34PM

10
#244 - aᵣᵤhᵢ / @aruhi_

10/15/2019 at 04:02PM

10
#245 - Aurélien / @saryon

10/15/2019 at 04:26PM

10
#246 - Jonas Marcus / @JonasMarcus1

10/16/2019 at 06:32PM

10
#247 - leo / @leo28356948

10/17/2019 at 02:13AM

10
#248 - Homo Ludens / @BsMainly

10/17/2019 at 01:59PM

10
#249 - Jeremy Soller / @jeremy_soller

10/17/2019 at 10:33PM

10
#250 - artgur / @artgur

10/18/2019 at 12:36AM

10
#251 - Lawrence Gray / @LawrenceGray23

10/19/2019 at 08:48AM

10
#252 - John Sumner / @rjsumner

10/19/2019 at 12:45PM

10
#253 - 李华楠 / @LeeOhanan

10/19/2019 at 01:21PM

10
#254 - harmony_krieg / @harmony_krieg

10/19/2019 at 08:50PM

10
#255 - Quentin Fox / @quentinbfox_

10/20/2019 at 05:53AM

10
#256 - Renan Cidale / @rnescalz

10/20/2019 at 07:04AM

10
#257 - Yasky / @Yaasky

10/21/2019 at 05:15PM

10
#258 - Luat Hoang / @luat1203

10/22/2019 at 04:16AM

10
#259 - てら@FighTimerで作業記録 / @sorahako0515

10/22/2019 at 03:42PM

10
#260 - TimMcGuire / @mcguire

10/22/2019 at 04:36PM

10
#261 - scalableprototyping / @scalableprotot1

10/22/2019 at 08:34PM

10
#262 - Timmy! / @timx

10/22/2019 at 08:48PM

10
#263 - yousef Ibrahim / @YucefIbrahim

10/23/2019 at 09:39PM

10
#264 - liad oz / @LiadOzIL

10/24/2019 at 06:43AM

10
#265 - Pierroninio / @uftos

10/25/2019 at 08:26AM

10
#266 - Marc8888 / @8888Marc

10/25/2019 at 07:35PM

10
#267 - Chadj Tomis / @ChadjTomis

10/25/2019 at 10:42PM

10
#268 - Velvet thunder / @wallybh

10/28/2019 at 09:45PM

10
#269 - Serghei Cebotari / @scebotari66

10/29/2019 at 02:31PM

10
#270 - Julian Stanley / @julianstanley_

10/31/2019 at 02:54PM