Monday, January 6, 2014

Re: Netrw tripping over itself: tree-view, modified buffers, and disregarding the `hidden` option

On 2014-01-06, Ivan wrote:
> On Monday, January 6, 2014 12:32:44 PM UTC-5, Ben Fritz wrote:
> > You can probably keep the version installed under bundle/vundle,
> > and probably don't need to delete the old version from your vim
> > install location.
>
> Since I'm installing from a Vimball rather than Vundle, I was
> worried (maybe unnecessarily) about Netrw being installed to the
> vundle directory. I suppose I could just use Vundle to install it
> from the github repo (which is a bit behind the Vimball, but I'm
> sure it'll catch up soon).

I don't use Vundle, but I do install some plugins into their own
directories and I modify 'rtp' accordingly. To insure that plugins
go where I want them, I set g:vimball_home in my ~/.vimrc before I
start mucking with 'rtp'.

let g:vimball_home = matchstr(&rtp, '^[^,]*')

Netrw is one of the plugins that I keep in its own directory, so to
make sure Vimball puts netrw in the right place, my ~/.vimrc also
includes the following.

au BufEnter netrw.vba,netrw.vba.gz,netrw.vba.bz2,netrw.vba.zip,netrw.vba.xz let g:vimball_home = $HOME."/.vim/netrw"
au BufEnter netrw.vmb,netrw.vmb.gz,netrw.vmb.bz2,netrw.vmb.zip,netrw.vmb.xz let g:vimball_home = $HOME."/.vim/netrw"

Those solutions assume that I install a vimballed plugin by
executing "vim someplugin.vmb" and do not install any other vimballs
in that same Vim session.

> The github repo also mentions a bug in the version that was
> distributed with Vim v7.0 that necessitates deleting those files
> in order to install a newer version. I'm on Vim 7.4 so maybe that
> doesn't apply, but I thought I'd remove them in case.

It shouldn't apply to you unless you had a private copy of netrw
dating from Vim 7.0.

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: