Skip to content

How does fugitive integrate with projectionist? #1866

Answered by tpope
mvanderkamp asked this question in Q&A
Discussion options

You must be logged in to vote
  • Why does projectionist need fugitive-specific variants of some built-in functions? Is there some special integration between fugitive and projectionist?

To use Projectionist features inside Fugitive buffers. For example, you can :Gedit HEAD:file.c and then call :A to get to HEAD:file.h.

  • Are there other plugins in the wild that use these "fugitive namespace" functions? To what benefit?

A few like rails.vim, rake.vim, and bundler.vim use it in basically the same way. Scriptease allows you to :source Fugitive buffers. Eunuch uses it to enable several operations on Fugitive buffers. For example, if you :Gdiffsplit and :Delete, that effectively does a git rm --cached.

This is hard to g…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mvanderkamp
Comment options

@tpope
Comment options

@mvanderkamp
Comment options

Answer selected by tpope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants