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

797 active golfers, 2827 entries

Leaderboard (lowest score wins):
10
#181 - Joel Taylor / @joeltayl

09/05/2019 at 05:46PM

10
#182 - Rohan Verma / @rhnvrm

09/05/2019 at 08:46PM

10
#183 - Andac Safa / @SanDForcE94

09/06/2019 at 09:21AM

10
#184 - lucca augusto / @LuccaAugusto6

09/08/2019 at 12:41PM

10
#185 - Nathan Bendich / @neonb88

09/08/2019 at 01:59PM

10
#186 - spock900 / @spock9002

09/08/2019 at 03:08PM

10
#187 - Iggy / @iggredible

09/10/2019 at 03:55AM

10
#188 - bsjd / @bsjd

09/10/2019 at 12:03PM

10
#189 - npo / @npo19645133

09/11/2019 at 08:46PM

10
#190 - diwa / @Di_nate_

09/12/2019 at 03:42AM

10
#191 - platypusDancing / @platypusDancing

09/12/2019 at 05:30PM

10
#192 - Ralph Callaway / @RalphAtCCC

09/13/2019 at 08:41AM

10
#193 - Simon / @SimontheLeg

09/13/2019 at 01:47PM

10
#194 - arsi arola / @mos_kiitto

09/13/2019 at 08:04PM

10
#195 - EL KESRI Othmane / @KesriOthmane

09/16/2019 at 12:27PM

10
#196 - Douglas Massolari / @dmassolari

09/16/2019 at 03:27PM

10
#197 - DosLin / @hidoslin

09/18/2019 at 09:28AM

10
#198 - vimgolfer / @vimgolfer7

09/20/2019 at 03:43AM

11
#199 - Benoit Benoit / @Benoit_Tgt

06/04/2019 at 09:00AM

11
#200 - Saki Gw / @Sakigw

06/04/2019 at 09:15AM

11
#201 - albalitz / @_albalitz

06/04/2019 at 12:46PM

11
#202 - Tinko Minko / @tandikula

06/04/2019 at 05:03PM

11
#203 - golf_throwaway / @GolfThrowaway

06/04/2019 at 05:45PM

11
#204 - Kamil Rocki / @rockikamil

06/04/2019 at 08:04PM

11
#205 - Richard Schneeman 🤠 / @schneems

06/05/2019 at 02:10AM

11
#206 - a60068 / @a60068

06/05/2019 at 01:31PM

11
#207 - kelaktaa / @kelaktaa

06/05/2019 at 04:08PM

11
#208 - JonasS / @jonas42s

06/05/2019 at 04:30PM

11
#209 - Valacar / @valacar

06/06/2019 at 03:47AM

11
#210 - Joo Ming / @JooMingJoo

06/06/2019 at 08:45AM