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 9 remaining solutions by signing in and submitting your own entry
#10 YAMADA Yukimi / edp02 - Score: 63 - 03/11/15 @ 15:26
:g/files/norm<Tab> d2f/f/D<CR>:g/\//norm<Tab> d3f/f/D<CR>v1G:sor u<CR>jdd13GddZZ

0 comments

#11 xieyh11 / xieyh11 - Score: 66 - 02/28/15 @ 08:50
:%s@\v.*/(.*)/fil.*@\1<CR>:%s@\v.*/(.*)/.*@\1<CR>:sor<CR>:sor u<CR>:2d<CR>:13d<CR>ZZ

0 comments

#12 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

12 active golfers, 26 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

35
#3 - Matthieu Crapet / mcr05

02/08/2015 at 10:21AM

37
#4 - Petro Тrouq / zulolosi

02/07/2015 at 10:53PM

43
#5 - pftb12345 / pftb12345

04/13/2015 at 12:03AM

45
#6 - Tim Chase / gumnos

02/07/2015 at 04:31PM

46
#7 - Carlos López / morrizon

02/07/2015 at 04:31PM

56
#8 - 0x255 / 0x255

02/09/2015 at 09:47AM

61
#9 - Eduardo / earada

02/07/2015 at 01:11PM

63
#10 - YAMADA Yukimi / edp02

03/11/2015 at 03:26PM

66
#11 - xieyh11 / xieyh11

02/28/2015 at 08:50AM

85
#12 - Oliver Christ / 0liverChrist

02/08/2015 at 07:01PM