GitXplorerGitXplorer
t

autojump.vim

public
32 stars
7 forks
4 issues

Commits

List of commits on branch master.
Unverified
c312a369ae59904f53a851a8d4e76f725a6ebcdc

Properly quote directory names

ttrotter committed 14 years ago
Unverified
d1cbee804c9abb5261b472fa5340a9ef41866cc6

Bump version

ttrotter committed 14 years ago
Unverified
c4c295b1c0ef7beaadd85c6505caa856b784a25d

Fix jump to file path completion

ttrotter committed 14 years ago
Unverified
d215c4fe8796057f3c1743d71be9fd1818cb427a

Fix github link to reflect it is https

ttrotter committed 14 years ago
Unverified
f87b7ac5b9a91bfd5226f261b454082648d9b663

Don't load autojump.vim if autojump is missing

ttrotter committed 14 years ago
Unverified
f39146de1d87dbcddc756ddbb10cdb0002117cf1

BUGFIX: Always with the removing comments

ttrotter committed 14 years ago

README

The README file for this repository.

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 cashion@gmail.com

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.