Package: fzf
Version: 0.17.5-1
Severity: normal

   * What led up to the situation?

I tried to replace my manually "go get"'ed version of fzf(1) with the
Debian package.

   * What was the outcome of this action?

The plugin (fzf.vim) I source from my .vimrc can no longer be loaded.
Relevant config snippet:

  if executable('fzf')
    if isdirectory($GOPATH . '/src/github.com/junegunn/fzf')
      exe 'set rtp+=' . $GOPATH . '/src/github.com/junegunn/fzf'
    else
      exe 'set rtp+=' . fnamemodify(resolve(systemlist('which fzf')[0]), ':h:h')
    endif
  endif

I added an extra block for the debian-installed FZF which places the file in:

  /usr/share/doc/fzf/examples/fzf.vim

However that doesn't work because vim expects these types of files to
be in a plugin/ subdirectory (source:
https://stackoverflow.com/questions/17128878/vim-plugins-dont-always-load)

   * What outcome did you expect instead?

I expect it to be loaded (i.e.: that the folder structure be similar
or at least matching the Vim guidelines for how plugins should be
structured)


   * Solution:

Instead of

  /usr/share/doc/fzf/examples/fzf.vim

It could be put under

  /usr/share/doc/fzf/examples/plugin/fzf.vim

Or (even better IMHO)

   /usr/share/vim/fzf/plugin/fzf.vim

-- System Information:
Debian Release: rodete
Architecture: amd64 (x86_64)

Reply via email to