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

796 active golfers, 2824 entries

Leaderboard (lowest score wins):
11
#271 - Robin / @0x767570

06/18/2019 at 08:28PM

11
#272 - Erik Larsson / @Ermigh

06/18/2019 at 09:03PM

11
#273 - Afonso Junior / @afonsobastosjr

06/19/2019 at 03:30PM

11
#274 - jackjsk / @jackjsk1

06/20/2019 at 03:43AM

11
#275 - couaber / @couaber

06/20/2019 at 02:24PM

11
#276 - Takayuki Sato / @yukitaka1974

06/20/2019 at 05:23PM

11
#277 - Joe Cabezas / @JoeCabezas

06/20/2019 at 06:13PM

11
#278 - Adam Torok / @AdamTorok8

06/20/2019 at 09:27PM

11
#279 - Elan Dubrofsky / @dubroe

06/21/2019 at 01:11AM

11
#280 - Brian Scheuermann / @brianscheu11

06/21/2019 at 01:21AM

11
#281 - Egor Fedkin / @Jet_Flynn

06/21/2019 at 07:10AM

11
#282 - Florian Suess / @suessflorian

06/23/2019 at 04:09AM

11
#283 - etherflow / @etherfl0w

06/23/2019 at 01:00PM

11
#284 - Laurent Atlan / @laurentatlan1

06/23/2019 at 10:05PM

11
#285 - nimbus117 / @nimbus_117

06/23/2019 at 11:24PM

11
#286 - Brian Olpin / @bolpin

06/24/2019 at 12:07AM

11
#287 - Oleg Andriyanov / @OAndriyanov

06/24/2019 at 09:14AM

11
#288 - Aurel / @AurelienFebvre

06/24/2019 at 08:29PM

11
#289 - Matt / @m4tty1c3

06/25/2019 at 04:06AM

11
#290 - Joseph A Shalabi / @JosephShalabi

06/26/2019 at 07:26PM

11
#291 - cinder 🔥 / @cyndrdev

06/27/2019 at 04:11PM

11
#292 - lofoneax / @lofoneax

06/27/2019 at 06:06PM

11
#293 - Floyd Gantt / @fgantt

06/27/2019 at 06:35PM

11
#294 - Johnny footlight / @JFootlight

06/28/2019 at 03:47PM

11
#295 - Sean Stapleton / @byseanstapleton

06/28/2019 at 04:51PM

11
#296 - Epecb / @BceEpecb

06/28/2019 at 10:09PM

11
#297 - Josh Braun / @bbraunj

06/30/2019 at 03:25AM

11
#298 - Scott Schlesier / @sschlesier

06/30/2019 at 04:00PM

11
#299 - Tom Dalziel / @dalziel_tom

06/30/2019 at 10:10PM

11
#300 - Sergey Ryabko / @RyabkoSergey

07/01/2019 at 03:15PM