Giter Club home page Giter Club logo

autojump.vim's Introduction

autojump.vim

Integrates autojump with vim, allowing you to open and edit files with ease.

If anyone out there is a hardcore vim hacker, please help me by forking this project and improving it. See the list of necessary enhancements in ./TODO.

Usage

:J replaces :e for most (maybe all) cases. When opening a file that has previously been opened :J file_path_fragment will open the most frequently used file that matches file_path_fragment. :J maintains two lists of possible matches. First, it will look for files in the current working directory and its subdirs. If nothing is found there, then it will search through a global jump list for a match. If that too fails, it will fall back to working like the normal :e command.

Autojump.vim supports completion as well, so feel free to hit tab after :J to see what possibilities exist.

You can also view your jumpstats with the :JumpStat command.

If you're on the command line and not yet in vim, I've included a jvim bash function that you can incorporate into your .profile or .bashrc (or whatever you use). Use it in the same way you use :J, though it currently only supports global matches.

Requirements

You must have autojump installed and on your path. If it's not there, this plugin won't work.

Installation

Download ./plugin/autojump.vim and place it in ~/.vim/plugin/autojump.vim.

Alternately, you can pull down the contents of this repo and run ./bin/install.sh. It won't actually do anything, but it will guide you through the process.

At some point, I (or someone else) will show you how to use tpope's pathogen. It's better than dropping things in ~/.vim/plugin.

Author

Trotter Cashion [email protected]

Thanks To

Joel Schaerer for writing autojump in the first place. If you're not using it instead of cd, you're an idiot.

License

Currently under MIT, but will move to GPL if I decided to incorporate autojump directly into the project.

autojump.vim's People

Contributors

trotter 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.