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

0 comments


Created by: @xiongyuwu

162 active golfers, 329 entries

Leaderboard (lowest score wins):
6
#121 - Miki Tebeka / @tebeka

01/14/2019 at 07:25AM

6
#122 - Saher El-Neklawy / @saherneklawy

01/14/2019 at 12:04PM

6
#123 - Andrew / @t0k0l0sh

01/14/2019 at 02:51PM

6
#124 - Timothy Michael Fox / @Timothy_M_Fox

01/16/2019 at 06:20PM

6
#125 - Stefano Bettani / @StefanoBettani

01/19/2019 at 01:22PM

6
#126 - wrglprmft / @wrglprmft

01/19/2019 at 07:48PM

6
#127 - joe / @wyohjoe

01/23/2019 at 11:28AM

6
#128 - Server Zero / @assaflavie

01/23/2019 at 03:22PM

6
#129 - Hayfay D. Audax / @HayfayDA

01/24/2019 at 01:04AM

6
#130 - churaki / @churaki

01/25/2019 at 09:10PM

6
#131 - Thomas Branch / @twighk

01/27/2019 at 01:01PM

6
#132 - Mac Goever / @MacGoever

01/27/2019 at 08:37PM

6
#133 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 09:28AM

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

01/31/2019 at 04:58PM

6
#135 - Slawek Ligus / @ooz_ie

02/13/2019 at 10:06PM

6
#136 - Ng Sek Long / @NgSekLong

02/15/2019 at 03:27AM

6
#137 - sjcomp / @sjcomp

02/25/2019 at 04:40PM

6
#138 - noisevoid / @noisevoid

02/26/2019 at 04:38PM

6
#139 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 09:21PM

6
#140 - Elias Daler / @EliasDaler

03/12/2019 at 03:31PM

6
#141 - hn9u / @hn9u

03/13/2019 at 03:32PM

6
#142 - ui / @ui61065627

03/14/2019 at 05:36AM

6
#143 - Amado Antonini / @AmadoAntonini

03/14/2019 at 12:34PM

6
#144 - John Maxwell / @jmaxyz

03/15/2019 at 12:44AM

6
#145 - The Joe / @computerjoe708

03/17/2019 at 05:20PM

6
#146 - cubemike / @cubemike

03/23/2019 at 05:31PM

7
#147 - h43z / @h43z

01/12/2019 at 02:48AM

7
#148 - tenteke / @kuskus3

01/14/2019 at 06:46AM

7
#149 - Graham Singer / @grahamsinger

01/19/2019 at 10:17PM

7
#150 - Calvin / @calveenlee

01/21/2019 at 05:03PM