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

0 comments


Created by: @xiongyuwu

286 active golfers, 582 entries

Leaderboard (lowest score wins):
6
#211 - Joe Francis / @lostapathy

01/13/2019 at 05:05PM

6
#212 - Martins / @Martins88554972

01/13/2019 at 07:26PM

6
#213 - Miki Tebeka / @tebeka

01/14/2019 at 07:25AM

6
#214 - Saher El-Neklawy / @saherneklawy

01/14/2019 at 12:04PM

6
#215 - Andrew / @t0k0l0sh

01/14/2019 at 02:51PM

6
#216 - Timothy Michael Fox / @Timothy_M_Fox

01/16/2019 at 06:20PM

6
#217 - Stefano Bettani / @StefanoBettani

01/19/2019 at 01:22PM

6
#218 - wrglprmft / @wrglprmft

01/19/2019 at 07:48PM

6
#219 - joe / @wyohjoe

01/23/2019 at 11:28AM

6
#220 - we’re going to need a bigger bot / @assaflavie

01/23/2019 at 03:22PM

6
#221 - Hayfay D. Audax / @HayfayDA

01/24/2019 at 01:04AM

6
#222 - churaki / @churaki

01/25/2019 at 09:10PM

6
#223 - Thomas Branch / @twighk

01/27/2019 at 01:01PM

6
#224 - Mac Goever / @MacGoever

01/27/2019 at 08:37PM

6
#225 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 09:28AM

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

01/31/2019 at 04:58PM

6
#227 - Slawek Ligus / @ooz_ie

02/13/2019 at 10:06PM

6
#228 - Ng Sek Long / @NgSekLong

02/15/2019 at 03:27AM

6
#229 - sjcomp / @sjcomp

02/25/2019 at 04:40PM

6
#230 - noisevoid / @noisevoid

02/26/2019 at 04:38PM

6
#231 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 09:21PM

6
#232 - Elias Daler / @EliasDaler

03/12/2019 at 03:31PM

6
#233 - hn9u / @hn9u

03/13/2019 at 03:32PM

6
#234 - ui / @ui61065627

03/14/2019 at 05:36AM

6
#235 - Amado Antonini / @AmadoAntonini

03/14/2019 at 12:34PM

6
#236 - John Maxwell / @jmaxyz

03/15/2019 at 12:44AM

6
#237 - The Joe / @computerjoe708

03/17/2019 at 05:20PM

6
#238 - cubemike / @cubemike

03/23/2019 at 05:31PM

6
#239 - 김형창 / @uVmEMZsCgcYvqZi

03/29/2019 at 03:11AM

6
#240 - Kvarz Mozazxrt / @KvarzMozazxrt

04/04/2019 at 12:47PM