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 5c393a580a5a300009888e2a

Delete to the end of the current line

Delete to the end of the current line, but keep the character under the cursor.

Start file
just to remove all text after; // this is a comment
End file
just to remove all text after;

View Diff

1c1
< just to remove all text after; // this is a comment
---
> just to remove all text after;

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 193 remaining solutions by signing in and submitting your own entry
#194 蒋金鑫 / @jiangjinxin1 - Score: 20 - 01/12/19 @ 09:13
f;Duu<Esc><Esc>bbbbbbbf;lDZZ

0 comments


Created by: @xiongyuwu

194 active golfers, 390 entries

Leaderboard (lowest score wins):
6
#151 - Server Zero / @assaflavie

01/23/2019 at 03:22PM

6
#152 - Hayfay D. Audax / @HayfayDA

01/24/2019 at 01:04AM

6
#153 - churaki / @churaki

01/25/2019 at 09:10PM

6
#154 - Thomas Branch / @twighk

01/27/2019 at 01:01PM

6
#155 - Mac Goever / @MacGoever

01/27/2019 at 08:37PM

6
#156 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 09:28AM

6
#157 - Артем Мухометзянов / @Timon_Surikat

01/31/2019 at 04:58PM

6
#158 - Slawek Ligus / @ooz_ie

02/13/2019 at 10:06PM

6
#159 - Ng Sek Long / @NgSekLong

02/15/2019 at 03:27AM

6
#160 - sjcomp / @sjcomp

02/25/2019 at 04:40PM

6
#161 - noisevoid / @noisevoid

02/26/2019 at 04:38PM

6
#162 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 09:21PM

6
#163 - Elias Daler / @EliasDaler

03/12/2019 at 03:31PM

6
#164 - hn9u / @hn9u

03/13/2019 at 03:32PM

6
#165 - ui / @ui61065627

03/14/2019 at 05:36AM

6
#166 - Amado Antonini / @AmadoAntonini

03/14/2019 at 12:34PM

6
#167 - John Maxwell / @jmaxyz

03/15/2019 at 12:44AM

6
#168 - The Joe / @computerjoe708

03/17/2019 at 05:20PM

6
#169 - cubemike / @cubemike

03/23/2019 at 05:31PM

6
#170 - 김형창 / @uVmEMZsCgcYvqZi

03/29/2019 at 03:11AM

6
#171 - Kvarz Mozazxrt / @KvarzMozazxrt

04/04/2019 at 12:47PM

6
#172 - Laurent Atlan / @laurentatlan1

04/14/2019 at 08:00PM

6
#173 - Denton Phosavanh / @DPhosavanh

05/12/2019 at 09:35AM

6
#174 - Nick Yeow / @nickyeow

05/22/2019 at 11:19AM

7
#175 - h43z / @h43z

01/12/2019 at 02:48AM

7
#176 - tenteke / @kuskus3

01/14/2019 at 06:46AM

7
#177 - Graham Singer / @grahamsinger

01/19/2019 at 10:17PM

7
#178 - Calvin / @calveenlee

01/21/2019 at 05:03PM

7
#179 - Arend Lagendijk / @arendlagendijk

03/03/2019 at 07:31PM

7
#180 - Izaak van Dongen / @goedel_gang

04/28/2019 at 12:26AM