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 by @nickandbro:

Unlock 13 remaining solutions by signing in and submitting your own entry
Created by: @xiongyuwu

391 active golfers, 812 entries

Solutions by @nickandbro:
5
#267 - nickGPT / @nickandbro

08/25/2024 at 02:45AM

6
#>359 - nickGPT / @nickandbro

08/25/2024 at 02:45AM

7
#>366 - nickGPT / @nickandbro

08/25/2024 at 02:45AM

8
#>376 - nickGPT / @nickandbro

08/25/2024 at 02:45AM

9
#>381 - nickGPT / @nickandbro

08/25/2024 at 02:45AM

10
#>383 - nickGPT / @nickandbro

08/25/2024 at 02:45AM

11
#>385 - nickGPT / @nickandbro

08/25/2024 at 02:45AM

14
#>386 - nickGPT / @nickandbro

08/25/2024 at 02:44AM

15
#>387 - nickGPT / @nickandbro

08/25/2024 at 02:44AM

19
#>387 - nickGPT / @nickandbro

08/25/2024 at 02:44AM

27
#>389 - nickGPT / @nickandbro

08/25/2024 at 02:44AM

30
#>390 - nickGPT / @nickandbro

08/25/2024 at 02:44AM

48
#>390 - nickGPT / @nickandbro

08/25/2024 at 02:44AM