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
#601 - mindgitrwx / @mindgitrwx

08/08/2020 at 01:45PM

10
#602 - Kazuki / @algo__n

08/09/2020 at 10:27AM

10
#603 - Владек / @escept1c

08/12/2020 at 02:04AM

10
#604 - Cao Van Bi / @CaoVanBi235

08/13/2020 at 01:57AM

10
#605 - santrupta mishra / @talkedgrain8

08/13/2020 at 02:36PM

10
#606 - Marco Selvi / @macselvi

08/14/2020 at 05:47PM

10
#607 - Muhsin AbdulMohammed / @muhsin____

08/16/2020 at 04:57PM

10
#608 - Theo Sarrazin / @tshaero

08/20/2020 at 06:47AM

10
#609 - Champii Akronym / @ChampiiPwet

08/21/2020 at 12:35AM

10
#610 - Łukasz Kadłubowski / @LAKadlubowski

08/21/2020 at 04:46AM

10
#611 - Oben Özgür / @Obenozgur

08/24/2020 at 03:10PM

10
#612 - fenn.stefan@gmail.com / @FennStefan

08/25/2020 at 11:45AM

10
#613 - RockerZZY / @rocker_zzy

08/26/2020 at 12:54PM

10
#614 - Udbhav Muthakana / @udbhavm_

08/27/2020 at 01:15AM

10
#615 - teo / @TeofilC

08/29/2020 at 04:30PM

10
#616 - Menaal Cochran / @CochranMenaal

08/29/2020 at 07:31PM

10
#617 - Camilo A. Matajira / @CamiloMatajira

08/29/2020 at 07:45PM

10
#618 - Mike Rosseel / @mrosseel

08/29/2020 at 11:12PM

10
#619 - cosh / @coshxx

08/30/2020 at 10:00AM

10
#620 - Skyler Dong / @skylerdong

08/30/2020 at 07:34PM

10
#621 - Hardik Upadhyay / @HardikU84218026

09/01/2020 at 08:43AM

10
#622 - Aaron Cooley / @acoolz

09/02/2020 at 04:49AM

10
#623 - Oartapnag / @praveer_n

09/02/2020 at 01:38PM

10
#624 - akouryy / @akouryy1

09/05/2020 at 04:50AM

10
#625 - yhgolf / @yhgolf1

09/05/2020 at 02:43PM

10
#626 - kofls / @kofls4

09/06/2020 at 11:11AM

10
#627 - FunkyKoval / @FunkyKoval10

09/06/2020 at 01:26PM

10
#628 - HarrisonSGolf / @HarrisonSGolf1

09/06/2020 at 08:42PM

10
#629 - alrito / @alrito6

09/06/2020 at 10:55PM

10
#630 - 刘宏亮 / @CoyAkey

09/07/2020 at 04:06PM