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 54d5f51d20b05716be00036d

Sort with uniq OpenEmbedded package names

For each line take 4th dirname of path. For example: "alsa-utils", "gawk-3.1.5", ... But! But if previous result is "files", take 3rd dirname instead. For example: "mktemp", "mklibs" ... If version is present in package name (dash is the separator character), take it. For example: "apt-0.9.9.4" prevails over "apt". And finally, use sort -u to get unique names!

Start file
meta/recipes-devtools/qemu/qemu/fix-libcap-header-issue-on-some-distro.patch
meta
/recipes-devtools/qemu/qemu/larger_default_ram_size.patch
meta
/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch
meta
/recipes-devtools/apt/apt-0.9.9.4/no-ko-translation.patch
meta
/recipes-extended/cracklib/cracklib/0001-packlib.c-support-dictionary-byte-order-dependent.patch
meta
/recipes-extended/screen/screen/rpathfix.patch
meta
/recipes-extended/lighttpd/lighttpd/acdefine.patch
meta
/recipes-extended/cracklib/cracklib/0002-craklib-fix-testnum-and-teststr-failed.patch
meta
/recipes-multimedia/tremor/tremor-20120314/obsolete_automake_macros.patch
meta
/recipes-devtools/flex/files/do_not_create_pdf_doc.patch
meta
/recipes-extended/gawk/gawk-3.1.5/obsolete_automake_macros.patch
meta
/recipes-extended/mktemp/files/fix-parallel-make.patch
meta
/recipes-extended/screen/screen-4.0.3/configure.patch
meta
/recipes-extended/gawk/gawk-4.1.1/Use-DESTDIR-in-extension-Makefile.am-when-removing-..patch
meta
/recipes-devtools/qemu/qemu/configure-Fix-Darwin-target-detection.patch
meta
/recipes-devtools/mklibs/files/sysrooted-ldso.patch
meta
/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch
meta
/recipes-devtools/qemu/files/qemu-enlarge-env-entry-size.patch
meta
/recipes-graphics/drm/libdrm/installtests-and-use-vimgolf.patch
meta
/recipes-extended/lighttpd/lighttpd/pkgconfig.patch
meta
/recipes-devtools/m4/m4/program_prefix.patch
meta
/recipes-devtools/qemu/files/exclude-some-arm-EABI-obsolete-syscalls.patch
meta
/recipes-devtools/m4/m4/ac_config_links.patch
meta
/recipes-devtools/mklibs/files/add-missing-data-files.patch
meta
/recipes-extended/mktemp/files/disable-strip.patch
meta
/recipes-devtools/m4/m4/fix_for_circular_dependency.patch
meta
/recipes-devtools/m4/m4/remove-gets.patch
meta
/recipes-devtools/apt/files/db_linking_fix.patch
meta
/recipes-devtools/qemu/qemu/disable-grabs.patch
meta
/recipes-devtools/qemu/files/Qemu-Arm-versatilepb-Add-memory-size-checking.patch
meta
/recipes-extended/screen/screen-4.0.3/screen-4.0.2-CVE-2009-1215.patch
meta
/recipes-multimedia/alsa/alsa-utils/alsa-utils-aplay-interrupt-signal-handling-fix.patch
meta
/recipes-devtools/apt/files/no-curl-hack.patch
meta
/recipes-extended/screen/screen-4.0.3/fix-parallel-make.patch
meta
/recipes-devtools/qemu/qemu/wacom.patch
meta
/recipes-multimedia/tremor/tremor-20120314/tremor-arm-thumb2.patch
meta
/recipes-devtools/xmlto/xmlto-0.0.26/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
meta
/recipes-devtools/apt/apt-0.9.9.4/rpathfix.patch
meta
/recipes-devtools/apt/apt-0.9.9.4/nodoc.patch
End file
alsa-utils
apt
-0.9.9.4
cracklib
flex
gawk
-3.1.5
gawk
-4.1.1
libdrm
lighttpd
m4
mklibs
mktemp
qemu
screen
-4.0.3
tremor
-20120314
xmlto
-0.0.26

View Diff

1,39c1,15
< meta/recipes-devtools/qemu/qemu/fix-libcap-header-issue-on-some-distro.patch
< meta/recipes-devtools/qemu/qemu/larger_default_ram_size.patch
< meta/recipes-multimedia/alsa/alsa-utils/0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch
< meta/recipes-devtools/apt/apt-0.9.9.4/no-ko-translation.patch
< meta/recipes-extended/cracklib/cracklib/0001-packlib.c-support-dictionary-byte-order-dependent.patch
< meta/recipes-extended/screen/screen/rpathfix.patch
< meta/recipes-extended/lighttpd/lighttpd/acdefine.patch
< meta/recipes-extended/cracklib/cracklib/0002-craklib-fix-testnum-and-teststr-failed.patch
< meta/recipes-multimedia/tremor/tremor-20120314/obsolete_automake_macros.patch
< meta/recipes-devtools/flex/files/do_not_create_pdf_doc.patch
< meta/recipes-extended/gawk/gawk-3.1.5/obsolete_automake_macros.patch
< meta/recipes-extended/mktemp/files/fix-parallel-make.patch
< meta/recipes-extended/screen/screen-4.0.3/configure.patch
< meta/recipes-extended/gawk/gawk-4.1.1/Use-DESTDIR-in-extension-Makefile.am-when-removing-..patch
< meta/recipes-devtools/qemu/qemu/configure-Fix-Darwin-target-detection.patch
< meta/recipes-devtools/mklibs/files/sysrooted-ldso.patch
< meta/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch
< meta/recipes-devtools/qemu/files/qemu-enlarge-env-entry-size.patch
< meta/recipes-graphics/drm/libdrm/installtests-and-use-vimgolf.patch
< meta/recipes-extended/lighttpd/lighttpd/pkgconfig.patch
< meta/recipes-devtools/m4/m4/program_prefix.patch
< meta/recipes-devtools/qemu/files/exclude-some-arm-EABI-obsolete-syscalls.patch
< meta/recipes-devtools/m4/m4/ac_config_links.patch
< meta/recipes-devtools/mklibs/files/add-missing-data-files.patch
< meta/recipes-extended/mktemp/files/disable-strip.patch
< meta/recipes-devtools/m4/m4/fix_for_circular_dependency.patch
< meta/recipes-devtools/m4/m4/remove-gets.patch
< meta/recipes-devtools/apt/files/db_linking_fix.patch
< meta/recipes-devtools/qemu/qemu/disable-grabs.patch
< meta/recipes-devtools/qemu/files/Qemu-Arm-versatilepb-Add-memory-size-checking.patch
< meta/recipes-extended/screen/screen-4.0.3/screen-4.0.2-CVE-2009-1215.patch
< meta/recipes-multimedia/alsa/alsa-utils/alsa-utils-aplay-interrupt-signal-handling-fix.patch
< meta/recipes-devtools/apt/files/no-curl-hack.patch
< meta/recipes-extended/screen/screen-4.0.3/fix-parallel-make.patch
< meta/recipes-devtools/qemu/qemu/wacom.patch
< meta/recipes-multimedia/tremor/tremor-20120314/tremor-arm-thumb2.patch
< meta/recipes-devtools/xmlto/xmlto-0.0.26/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
< meta/recipes-devtools/apt/apt-0.9.9.4/rpathfix.patch
< meta/recipes-devtools/apt/apt-0.9.9.4/nodoc.patch
---
> alsa-utils
> apt-0.9.9.4
> cracklib
> flex
> gawk-3.1.5
> gawk-4.1.1
> libdrm
> lighttpd
> m4
> mklibs
> mktemp
> qemu
> screen-4.0.3
> tremor-20120314
> xmlto-0.0.26

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 14 remaining solutions by signing in and submitting your own entry
#15 Oliver Christ / @0liverChrist - Score: 85 - 02/08/15 @ 19:01
:v/files/d<CR>Vgg"ayu:<Up><Home><Del>g<CR>gg"aPqqd2f/+q9@qqqd3f/+q27@q@qggqqf/D+q38@q:sor u<CR>jdd14GkddZZ

0 comments


Created by: @mcr05

15 active golfers, 45 entries

Leaderboard (lowest score wins):
32
#1 - Urtica dioica / @udioica

02/08/2015 at 09:29AM

32
#2 - John Braxler / @braxler

02/11/2015 at 03:56PM

32
#3 - Miłosz Łakomy / @foobar01123

12/31/2019 at 01:00PM

32
#4 - Peppa Pig / @PeppaPigSg

06/15/2024 at 06:55AM

32
#5 - nickGPT / @nickandbro

08/28/2024 at 04:35AM

35
#6 - Matt / @mcr05

02/08/2015 at 10:21AM

37
#7 - Petro Тrouq / @zulolosi

02/07/2015 at 10:53PM

43
#8 - pftb12345 / @pftb12345

04/13/2015 at 12:03AM

45
#9 - Tim Chase / @gumnos

02/07/2015 at 04:31PM

46
#10 - Carlos López / @morrizon

02/07/2015 at 04:31PM

56
#11 - 0x255 / @0x255

02/09/2015 at 09:47AM

61
#12 - Eduardo / @earada

02/07/2015 at 01:11PM

63
#13 - ゆきみ / @edp02

03/11/2015 at 03:26PM

66
#14 - xieyh11 / @xieyh11

02/28/2015 at 08:50AM

85
#15 - Oliver Christ / @0liverChrist

02/08/2015 at 07:01PM