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 4fca29ddd3a0d40001000038

Remove semicolons after expressions

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

Start file
var foo;

var bar = myCoolStuff();

callRemote
();

foo
= callTheWorld();
End file
var foo

var bar = myCoolStuff()

callRemote
()

foo
= callTheWorld()

View Diff

1c1
< var foo;
---
> var foo
3c3
< var bar = myCoolStuff();
---
> var bar = myCoolStuff()
5c5
< callRemote();
---
> callRemote()
7c7
< foo = callTheWorld();
---
> foo = callTheWorld()

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 261 remaining solutions by signing in and submitting your own entry
#262 Noel Alejandro / @noelrock333 - Score: 15 - 06/23/12 @ 00:03
:%s/;//<CR>:w<CR><Esc>:q<CR>

0 comments


#263 Samuel Masuy / @samasuy - Score: 15 - 07/24/14 @ 16:06
qaI<Esc>A<BS><Esc>jjq3@aZZ

0 comments


Created by: @laurilehmijoki

263 active golfers, 654 entries

Leaderboard (lowest score wins):
6
#91 - Daniel / @Daniel00288663

04/03/2017 at 01:52PM

6
#92 - Benny / @b1299709

06/15/2017 at 10:09AM

6
#93 - Benjamin Unger / @Ben_Unger

09/16/2017 at 01:56PM

6
#94 - Brandon Blakeley / @zkelvin

11/25/2017 at 01:24AM

6
#95 - Turkey Man / @lvturkeyman

11/26/2017 at 10:16AM

6
#96 - BarbaJol / @drpproteus

01/10/2018 at 04:48PM

6
#97 - Evgeny`s Kindle / @EvgenyKindle

04/25/2018 at 08:01AM

6
#98 - Mihai / @mihaicristiant

02/25/2019 at 03:22PM

6
#99 - ๐šƒ๐š’๐š๐š˜๐šž๐šŠ๐š— ๐šƒ๐šŽ๐šข๐šœ๐šœ๐š’๐šŽ๐š› / @TitouanT_

03/09/2019 at 10:26PM

6
#100 - Kim / @BiSaF

03/10/2019 at 10:24AM

6
#101 - deurzen / @devrzen

06/06/2019 at 01:46PM

6
#102 - Himavanth Reddy / @Himavanth1909

08/12/2019 at 06:54AM

6
#103 - Kenny Low / @kennylow

09/02/2019 at 02:03PM

6
#104 - vimgolfer / @vimgolfer7

10/05/2019 at 02:03PM

6
#105 - Lory / @Lory46845742

12/10/2019 at 03:20PM

6
#106 - Johannes Riecken / @rubystallion

01/15/2020 at 06:53PM

6
#107 - Miล‚osz ลakomy / @foobar01123

02/24/2020 at 03:07AM

6
#108 - Michael / @thscuriousquest

03/01/2020 at 03:02AM

6
#109 - r4d1um / @r4d1um

03/13/2020 at 08:16PM

6
#110 - Ryan Nevius / @ryannevius

03/20/2020 at 07:00AM

6
#111 - Finlay McAfee / @finsqm

06/09/2020 at 06:57PM

6
#112 - RockerZZY / @rocker_zzy

06/13/2020 at 03:13PM

6
#113 - ใ›ใ„ใปใ† / @FICSQF

01/29/2021 at 09:10AM

6
#114 - ์ฝ”๋”ฉ๋‘”์žฌ / @OQMTe3DGVve8wiU

02/17/2021 at 10:14AM

6
#115 - Scott Atkins / @scottrick49

08/03/2021 at 12:42PM

6
#116 - POSIX / @po6ix

01/24/2022 at 02:12PM

6
#117 - Jean George / @JeanGeo20504212

04/06/2022 at 08:21PM

6
#118 - blabla zincou / @BZincou

04/10/2022 at 08:33PM

6
#119 - Alex / @AlexanderHeatl2

06/03/2022 at 09:42PM

6
#120 - russellzhaomao / @russellzhaomao

06/05/2022 at 12:39PM