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

0 comments


Created by: @xiongyuwu

242 active golfers, 487 entries

Leaderboard (lowest score wins):
5
#31 - rutubo / @rutuboc

01/16/2019 at 01:31PM

5
#32 - Juan Manuel Fresia / @fresiajm

01/16/2019 at 11:47PM

5
#33 - Mario Olofo / @mario_olofo

01/17/2019 at 03:45AM

5
#34 - rhrn / @rhrn

01/17/2019 at 07:50AM

5
#35 - JhNJhs / @JhNJhs

01/17/2019 at 09:26AM

5
#36 - Tom / @atomgrand

01/17/2019 at 07:53PM

5
#37 - Ninja Knife / @iNinjaknife

01/17/2019 at 10:17PM

5
#38 - Diogo Felix / @onlurking

01/18/2019 at 06:17AM

5
#39 - MuadDev / @MuadDev

01/18/2019 at 08:07AM

5
#40 - eduardo torres / @etdavila10

01/18/2019 at 09:03AM

5
#41 - Will Wright / @Will_Wrightwa

01/19/2019 at 04:05AM

5
#42 - maxime he / @he_maxime

01/19/2019 at 10:35AM

5
#43 - drswaghawk / @drswaghawk

01/19/2019 at 05:59PM

5
#44 - chocolate / @chocola81394123

01/20/2019 at 05:58AM

5
#45 - Ronnie Kon / @KonRonnie

01/21/2019 at 01:46AM

5
#46 - Alex Tercete / @alextercete

01/21/2019 at 05:57PM

5
#47 - lofoneax / @lofoneax

01/22/2019 at 04:16AM

5
#48 - LC / @leeren

01/22/2019 at 04:51AM

5
#49 - Federico / @gselsette

01/22/2019 at 11:11PM

5
#50 - André Z / @andrelzanellato

01/22/2019 at 11:42PM

5
#51 - xer0.5ive / @Bibekshah

01/23/2019 at 02:47PM

5
#52 - Kit Saels / @KitSaels

01/24/2019 at 09:33PM

5
#53 - bajidu / @bajidu

01/24/2019 at 09:46PM

5
#54 - ShameOnMeApp / @ShameOnMeApp

01/25/2019 at 05:36PM

5
#55 - Sébastien Roccaserra / @sroccaserra

01/25/2019 at 11:01PM

5
#56 - Tinko Minko / @tandikula

01/27/2019 at 07:04AM

5
#57 - Sachet Mittal / @MittalSachet

01/27/2019 at 07:44AM

5
#58 - Marc Päpper / @mpaepper

01/27/2019 at 02:31PM

5
#59 - Michael Aquilina / @mikeaquilina4

01/27/2019 at 10:06PM

5
#60 - brian / @b_

01/28/2019 at 01:02AM