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

0 comments


Created by: @xiongyuwu

257 active golfers, 522 entries

Leaderboard (lowest score wins):
6
#181 - PJ Frazer / @pj_frazer

01/12/2019 at 01:07AM

6
#182 - James / @Dronak

01/12/2019 at 01:23AM

6
#183 - Derek Schrock / @derekschrock

01/12/2019 at 02:08AM

6
#184 - Dax / @zacoxi

01/12/2019 at 02:49AM

6
#185 - abgalphabet / @abgalphabet

01/12/2019 at 02:53AM

6
#186 - Luan Truong / @hubbatch0

01/12/2019 at 04:59PM

6
#187 - hbdgr / @t_hbdgr

01/12/2019 at 07:54PM

6
#188 - Blah Blah / @BlahBla08410389

01/12/2019 at 08:13PM

6
#189 - rg thomas / @rgt47

01/12/2019 at 11:56PM

6
#190 - Benjamin Davies / @Benjami77142111

01/13/2019 at 09:06AM

6
#191 - Joe Francis / @lostapathy

01/13/2019 at 05:05PM

6
#192 - Martins / @Martins88554972

01/13/2019 at 07:26PM

6
#193 - Miki Tebeka / @tebeka

01/14/2019 at 07:25AM

6
#194 - Saher El-Neklawy / @saherneklawy

01/14/2019 at 12:04PM

6
#195 - Andrew / @t0k0l0sh

01/14/2019 at 02:51PM

6
#196 - Timothy Michael Fox / @Timothy_M_Fox

01/16/2019 at 06:20PM

6
#197 - Stefano Bettani / @StefanoBettani

01/19/2019 at 01:22PM

6
#198 - wrglprmft / @wrglprmft

01/19/2019 at 07:48PM

6
#199 - joe / @wyohjoe

01/23/2019 at 11:28AM

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

01/23/2019 at 03:22PM

6
#201 - Hayfay D. Audax / @HayfayDA

01/24/2019 at 01:04AM

6
#202 - churaki / @churaki

01/25/2019 at 09:10PM

6
#203 - Thomas Branch / @twighk

01/27/2019 at 01:01PM

6
#204 - Mac Goever / @MacGoever

01/27/2019 at 08:37PM

6
#205 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 09:28AM

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

01/31/2019 at 04:58PM

6
#207 - Slawek Ligus / @ooz_ie

02/13/2019 at 10:06PM

6
#208 - Ng Sek Long / @NgSekLong

02/15/2019 at 03:27AM

6
#209 - sjcomp / @sjcomp

02/25/2019 at 04:40PM

6
#210 - noisevoid / @noisevoid

02/26/2019 at 04:38PM