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

0 comments


Created by: @xiongyuwu

192 active golfers, 383 entries

Leaderboard (lowest score wins):
5
#121 - ow / @ow34480012

05/02/2019 at 08:06AM

5
#122 - Ítalo Vieira / @italoviieira

05/04/2019 at 03:32AM

5
#123 - (っ=﹏=c) .。o○ / @itchyny

05/04/2019 at 12:56PM

5
#124 - Manos Koutselakis / @koutselakis_m

05/05/2019 at 04:45PM

5
#125 - Jairo Suarez / @xyos

05/08/2019 at 04:51PM

5
#126 - Arno / @arnoxmp

05/08/2019 at 09:03PM

5
#127 - Daniel Hakimian / @danrafhak

05/15/2019 at 06:18PM

5
#128 - ささ / @nick11033

05/16/2019 at 11:48AM

5
#129 - heppen / @heppen_He

05/17/2019 at 08:42AM

6
#130 - xiong yuwu / @xiongyuwu

01/12/2019 at 12:53AM

6
#131 - PJ Frazer / @pj_frazer

01/12/2019 at 01:07AM

6
#132 - James / @Dronak

01/12/2019 at 01:23AM

6
#133 - Derek Schrock / @derekschrock

01/12/2019 at 02:08AM

6
#134 - Dax / @zacoxi

01/12/2019 at 02:49AM

6
#135 - abgalphabet / @abgalphabet

01/12/2019 at 02:53AM

6
#136 - Luan Truong / @hubbatch0

01/12/2019 at 04:59PM

6
#137 - hbdgr / @t_hbdgr

01/12/2019 at 07:54PM

6
#138 - Blah Blah / @BlahBla08410389

01/12/2019 at 08:13PM

6
#139 - rg thomas / @rgt47

01/12/2019 at 11:56PM

6
#140 - Benjamin Davies / @Benjami77142111

01/13/2019 at 09:06AM

6
#141 - Joe Francis / @lostapathy

01/13/2019 at 05:05PM

6
#142 - Martins / @Martins88554972

01/13/2019 at 07:26PM

6
#143 - Miki Tebeka / @tebeka

01/14/2019 at 07:25AM

6
#144 - Saher El-Neklawy / @saherneklawy

01/14/2019 at 12:04PM

6
#145 - Andrew / @t0k0l0sh

01/14/2019 at 02:51PM

6
#146 - Timothy Michael Fox / @Timothy_M_Fox

01/16/2019 at 06:20PM

6
#147 - Stefano Bettani / @StefanoBettani

01/19/2019 at 01:22PM

6
#148 - wrglprmft / @wrglprmft

01/19/2019 at 07:48PM

6
#149 - joe / @wyohjoe

01/23/2019 at 11:28AM

6
#150 - Server Zero / @assaflavie

01/23/2019 at 03:22PM