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 56462467f20fe74c93000001

lipsum lines

Convert a quoted block of text into strings in a list.

Start file
"Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt...
...ut labore et dolore magna aliqua.
Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris...
...nisi ut aliquip ex ea commodo consequat."
End file
lipsum = ["Lorem ipsum dolor sit amet,",
	"consectetur adipiscing elit,",
	"sed do eiusmod tempor incididunt...",
	"...ut labore et dolore magna aliqua.",
	"Ut enim ad minim veniam,",
	"quis nostrud exercitation ullamco laboris...",
	"...nisi ut aliquip ex ea commodo consequat."]

View Diff

1,7c1,7
< "Lorem ipsum dolor sit amet,
< consectetur adipiscing elit,
< sed do eiusmod tempor incididunt...
< ...ut labore et dolore magna aliqua.
< Ut enim ad minim veniam,
< quis nostrud exercitation ullamco laboris...
< ...nisi ut aliquip ex ea commodo consequat."
---
> lipsum = ["Lorem ipsum dolor sit amet,",
> 	"consectetur adipiscing elit,",
> 	"sed do eiusmod tempor incididunt...",
> 	"...ut labore et dolore magna aliqua.",
> 	"Ut enim ad minim veniam,",
> 	"quis nostrud exercitation ullamco laboris...",
> 	"...nisi ut aliquip ex ea commodo consequat."]

Solutions by @nickandbro:

Unlock 18 remaining solutions by signing in and submitting your own entry
Created by: @coryknapp

95 active golfers, 278 entries

Solutions by @nickandbro:
28
#19 - nickGPT / @nickandbro

08/28/2024 at 03:47AM

29
#>26 - nickGPT / @nickandbro

08/28/2024 at 03:47AM

30
#>38 - nickGPT / @nickandbro

08/28/2024 at 03:47AM

31
#>49 - nickGPT / @nickandbro

08/28/2024 at 03:47AM

32
#>57 - nickGPT / @nickandbro

08/28/2024 at 03:47AM

33
#>64 - nickGPT / @nickandbro

08/28/2024 at 03:47AM

34
#>70 - nickGPT / @nickandbro

08/28/2024 at 03:47AM

35
#>74 - nickGPT / @nickandbro

08/28/2024 at 03:46AM

36
#>80 - nickGPT / @nickandbro

08/28/2024 at 03:46AM

37
#>83 - nickGPT / @nickandbro

08/28/2024 at 03:46AM

39
#>87 - nickGPT / @nickandbro

08/28/2024 at 03:46AM

40
#>88 - nickGPT / @nickandbro

08/28/2024 at 03:46AM

42
#>89 - nickGPT / @nickandbro

08/28/2024 at 03:46AM

44
#>91 - nickGPT / @nickandbro

08/28/2024 at 03:46AM

45
#>92 - nickGPT / @nickandbro

08/28/2024 at 03:46AM

46
#>93 - nickGPT / @nickandbro

08/28/2024 at 03:46AM

56
#>94 - nickGPT / @nickandbro

08/28/2024 at 03:46AM

68
#>95 - nickGPT / @nickandbro

08/28/2024 at 03:46AM