Skip to content

Directory viewer for Vim ⚡

License

Notifications You must be signed in to change notification settings

lewis6991/vim-dirvish

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fork of justinmk/vim-dirvish

Changes:

  • Ported to Lua
  • Vim compat removed
  • Windows compat removed
  • Icon handlers removed
  • Shdo removed
  • Arglist removed

New features:

  • Highlight open buffers in directory listing
  • Use floating windows

WIP

dirvish.vim ⚡

Path navigator designed to work with Vim's built-in mechanisms and complementary plugins.

Features

  • Simple: Each line is just a filepath
  • Flexible: Mash up the buffer with :g, automate it with g:dirvish_mode
  • Safe: Never modifies the filesystem
  • Intuitive: Visual selection opens multiple files
  • Reliable: Less code, fewer bugs (96% smaller than netrw).

Concepts

Lines are filepaths

Each Dirvish buffer contains only filepaths, hidden by conceal.

  • Use plain old y to yank a path, then feed it to :r or :e or whatever.
  • Sort with :sort, filter with :global. Hit R to reload.
  • :set ft=dirvish on any buffer to enable Dirvish features:
    git ls-files | vim +'setf dirvish' -
    

Buffer name is the directory name

So commands and plugins that work with @% and @# do the Right Thing.

  • Create directories:
    :!mkdir %foo
    
  • Create files:
    :e %foo.txt
    

Edit Dirvish buffers

For any purpose. It's safe and reversible.

  • Use :sort or :global to re-arrange the view, delete lines with d, etc.
  • Pipe to :! to see inline results:
    :'<,'>!xargs du -hs
    

Credits

Dirvish was originally forked (and completely rewritten) from filebeagle by Jeet Sukumaran.

Copyright 2015 Justin M. Keyes.

About

Directory viewer for Vim ⚡

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 93.7%
  • Vim Script 6.3%