GithubHelp home page GithubHelp logo

vim-dirvish's Introduction

dirvish.vim ⚡


Status: 1.0 "Release Candidate". 1.0 release will follow after some bake-time.


Dirvish is a minimalist path navigator for Vim, designed with the philosophy that plugins should harmonize with Vim's built-in mechanisms and with complementary plugins instead of re-inventing dead-end imitations.

Re-use and composition of concepts multiplies the utility of those concepts; if a plugin does not reuse a concept, both that concept and the new, redundant mechanism are made mutually less valuable—the sum is less than the parts—because the user now must learn or choose from two slightly different things instead of one augmented system. @tpope's plugins demonstrate this theme; more plugins should too.

Features

  • simple: each line is literally just a filepath
  • flexible: mash up the buffer with :g and friends
  • safe: never modifies the filesystem
  • original and alternate buffers are preserved
  • meticulous, non-intrusive defaults
  • 2x faster than netrw (try a directory with 1000+ items)
  • visual selection opens multiple files
  • :Shdo performs any shell command on selected file(s)
  • fewer bugs: 400 lines of code (netrw: 11000)
  • compatible with Vim 7.2+

Each line in a Dirvish buffer is an absolute filepath (hidden by Vim's conceal feature). Each Dirvish buffer name is the actual directory name, so Vim commands and plugins (fugitive.vim) that work with the buffer name do the Right Thing.

  • Create directories with :!mkdir %foo.
  • Create files with :e %foo.txt
  • Use plain old y to yank the path under the cursor, then feed it to :r or :e or whatever.
  • Instead of netrw's super-special mark/move commands, you can :!mv <c-r><c-a> <c-r><c-a>foo.
    • Or add lines to the quickfix list (:'<,'>caddb) and iterate them (:cdo, :cfdo).
  • :set ft=dirvish works on any list of files. Try git ls-files|vim +'setf dirvish' -.

FAQ

How do I delete or rename a bunch of files?

Since :'<,'>call delete(getline('.')) is a bit much to type, try :Shdo (mapped to x) in any Dirvish buffer to perform a shell command on a range of lines.

How do I sort?

:sort i. It's totally fine to slice, dice, and smash any Dirvish buffer—it will never modify the filesystem. Just press R to get the default listing back.

Acknowledgements

Dirvish was originally forked from filebeagle. Thanks to @jeetsukumaran.

vim-dirvish's People

Contributors

dmedvinsky avatar jeetsukumaran avatar justinmk avatar mattn avatar mhinz avatar noahfrederick avatar rainerborene avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.