Andrew Falanga wrote:

I'm doing some reading on vim.org in the documentation areas and found
that the ability to browse a directory from within a buffer is
actually accomplished by plugins rather than being built into the vim
binary.  I didn't know this.  So, what plugin is it that accomplishes
what is referenced here
http://vimdoc.sourceforge.net/htmldoc/usr_22.html?


netrw.vim

Its also been updated quite a bit since the original release of vim 7.0; so here's
some directions on how to update it:

To get an up-to-date version of netrw, you'll also need to get an up-to-date version of vimball. So:

1) Get up-to-date versions of vimball and netrw:

  vimball:
        http://vim.sourceforge.net/scripts/script.php?script_id=1502
 -or-   http://mysite.verizon.net/astronaut/vim/index.html#VimBall
 (the mysite.verizon.net one will be the more recent version)

  netrw:
        http://vim.sourceforge.net/scripts/script.php?script_id=1075
 -or-   http://mysite.verizon.net/astronaut/vim/index.html#NETRW

2) Remove the old vimball plugin and install the new one:

   Linux:
       cd /usr/local/share/vim/vim70
       /bin/rm plugin/vimball*.vim autoload/vimball*.vim doc/pi_vimball.txt
       mv (wherever it was downloaded)/vimball.tar.gz .
       gunzip vimball.tar.gz
       tar -xvf vimball.tar

   Windows:
Under Windows, check your runtimepath to determine where your vim 7.0's runtime directories are:

       vim
       :echo &rtp
       :q

The first directory is likely your personal plugins directory, the second one is your vim system directory.

       cd (to your vim system directory)
       del plugin\vimballPlugin.vim
       del autoload\vimball.vim
       del doc\pi_vimball.txt
       ren (wherever)\vimball.tar.gz vimball.tar.gz
       gunzip vimball.tar.gz
       tar -xvf vimball.tar

3) Remove system version of netrw:
Linux:
       cd /usr/local/share/vim/vim70
/bin/rm plugin/netrw*.vim autoload/netrw*.vim doc/pi_netrw.txt syntax/netrw*.vim Windows:
       cd (to your vim system directory)
       del plugin\netrwPlugin.vim
       del autoload\netrw.vim
       del doc\pi_netrw.txt
       del syntax\netrw.vim

4) Install an up-to-date version of netrw:
  vim netrw.vba.gz
  :so %
  :q

Regards,
Chip Campbell

Reply via email to