GithubHelp home page GithubHelp logo

alecdwm-forks / vim-vinegar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tpope/vim-vinegar

0.0 1.0 0.0 35 KB

vinegar.vim: Combine with netrw to create a delicious salad dressing

Home Page: https://www.vim.org/scripts/script.php?script_id=5671

Vim Script 100.00%

vim-vinegar's Introduction

vinegar.vim

Split windows and the project drawer go together like oil and vinegar. I don't mean to say that you can combine them to create a delicious salad dressing. I mean that they don't mix well!

  • Drew Neil

You know what netrw is, right? The built in directory browser? Well, vinegar.vim enhances netrw, partially in an attempt to mitigate the need for more disruptive "project drawer" style plugins.

Some of the behaviors added by vinegar.vim would make excellent upstream additions. Many, the author would probably reject. Others are a bit too wild to even consider.

  • Press - in any buffer to hop up to the directory listing and seek to the file you just came from. Keep bouncing to go up, up, up. Having rapid directory access available changes everything.
  • All that annoying crap at the top is turned off, leaving you with nothing but a list of files. This is surprisingly disorienting, but ultimately very liberating. Press I to toggle until you adapt.
  • The oddly C-biased default sort order is replaced with a sensible application of 'suffixes'.
  • File hiding: files are not listed that match with one of the patterns in 'wildignore'.
    If you put let g:netrw_list_hide = '\(^\|\s\s\)\zs\.\S\+' in your vimrc, vinegar will initialize with dot files hidden. Press gh to toggle dot file hiding.
  • Press . on a file to pre-populate it at the end of a : command line. This is great, for example, to quickly initiate a :grep of the file or directory under the cursor. There's also !, which starts the line off with a bang. Type !chmod +x and get :!chmod +x path/to/file.
  • Press y. to yank an absolute path for the file under the cursor.
  • Press ~ to go home.
  • Use Vim's built-in CTRL-^ (CTRL-6) for switching back to the previous buffer from the netrw buffer.

Installation

Install using your favourite package manager, or use Vim's built-in package support:

mkdir -p ~/.vim/pack/tpope/start
cd ~/.vim/pack/tpope/start
git clone https://github.com/tpope/vim-vinegar.git

Promotion

Like vinegar.vim? Star the repository on GitHub and vote for it on vim.org.

Love vinegar.vim? Follow tpope on GitHub and Twitter.

License

Copyright © Tim Pope. Distributed under the same terms as Vim itself. See :help license.

vim-vinegar's People

Contributors

alecdwm avatar benabik avatar cuviper avatar direvus avatar dnr avatar dreadatour avatar h3xx avatar kiryph avatar konfekt avatar lehmannro avatar lukaszjakubek avatar matthewd avatar netj avatar odnoletkov avatar serebrov avatar tpope avatar

Watchers

 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.