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

2990 active golfers, 10546 entries

Leaderboard (lowest score wins):
11
#811 - Afonso Junior / @afonsobastosjr

06/19/2019 at 03:30PM

11
#812 - jackjsk / @jackjsk1

06/20/2019 at 03:43AM

11
#813 - couaber / @couaber

06/20/2019 at 02:24PM

11
#814 - Sato Takayuki / @yukitaka1974

06/20/2019 at 05:23PM

11
#815 - Joe Cabezas / @JoeCabezas

06/20/2019 at 06:13PM

11
#816 - Adam Torok / @AdamTorok8

06/20/2019 at 09:27PM

11
#817 - Elan Dubrofsky / @dubroe

06/21/2019 at 01:11AM

11
#818 - Brian Scheuermann / @brianscheu11

06/21/2019 at 01:21AM

11
#819 - Egor Fedkin / @Jet_Flynn

06/21/2019 at 07:10AM

11
#820 - Florian Suess / @suessflorian

06/23/2019 at 04:09AM

11
#821 - etherflow / @etherfl0w

06/23/2019 at 01:00PM

11
#822 - Laurent Atlan / @laurentatlan1

06/23/2019 at 10:05PM

11
#823 - James Gillies / @jw_gillies

06/23/2019 at 11:24PM

11
#824 - Brian Olpin / @bolpin

06/24/2019 at 12:07AM

11
#825 - Oleg Andriyanov / @OAndriyanov

06/24/2019 at 09:14AM

11
#826 - Aurel / @AurelienFebvre

06/24/2019 at 08:29PM

11
#827 - Matt / @m4tty1c3

06/25/2019 at 04:06AM

11
#828 - Joseph A Shalabi / @JosephShalabi

06/26/2019 at 07:26PM

11
#829 - cinder 🔥 / @cyndrdev

06/27/2019 at 04:11PM

11
#830 - Floyd Gantt / @fgantt

06/27/2019 at 06:35PM

11
#831 - Johnny footlight / @JFootlight

06/28/2019 at 03:47PM

11
#832 - Sean Stapleton / @byseanstapleton

06/28/2019 at 04:51PM

11
#833 - Epecb / @BceEpecb

06/28/2019 at 10:09PM

11
#834 - Josh Braun / @bbraunj

06/30/2019 at 03:25AM

11
#835 - Scott Schlesier / @sschlesier

06/30/2019 at 04:00PM

11
#836 - Tom Dalziel / @dalziel_tom

06/30/2019 at 10:10PM

11
#837 - Sergey Ryabko / @sergey_ryabko

07/01/2019 at 03:15PM

11
#838 - wandering sol / @SunReyE

07/02/2019 at 07:18AM

11
#839 - vasyharan / @vasyharan

07/02/2019 at 06:58PM

11
#840 - Marcus Loo / @MarcusLoo1

07/03/2019 at 02:28AM