magit VS vim-fugitive

Compare magit vs vim-fugitive and see what are their differences.

magit

It's Magit! A Git Porcelain inside Emacs. (by magit)

vim-fugitive

fugitive.vim: A Git wrapper so awesome, it should be illegal (by tpope)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
magit vim-fugitive
119 114
6,345 19,053
1.4% -
9.4 8.2
8 days ago 8 days ago
Emacs Lisp Vim Script
GNU General Public License v3.0 only -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

magit

Posts with mentions or reviews of magit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-27.
  • M-X Reloaded: The Second Golden Age of Emacs – (Think)
    4 projects | news.ycombinator.com | 27 Feb 2024
    Then the slowness that you're seeing is probably Windows-specific, and that's why everyone else is telling you that Magit is actually fast.

    WSL might make things faster.[1] IIUC, the problem is that starting new processes is much slower on Windows than on Linux/Unix and Magit relies heavily on that. This seems to have plagued Git tooling more generally but maybe this got fixed since then.[2]

    [1] https://emacs.stackexchange.com/a/58444

    [2] https://github.com/magit/magit/issues/2395#issuecomment-1710...

  • I (kind of) killed Mercurial at Mozilla
    12 projects | news.ycombinator.com | 21 Nov 2023
  • Is it too late to learn emacs as a vim lifer?
    3 projects | /r/emacs | 3 Oct 2023
    You'll want to invest the time in learning Magit, which will change your life once you get the hang of it (and I was a heavy user of Fugitive in Vim previously!), and it's unlikely you'll find a better integration with GDB anywhere else on the planet than with Emacs, though I can't say that empirically. You just need to take the plunge and start learning it, then cut over and take the hit in productivity one day when you're feeling adventurous. You'll ultimately become far more powerful than you've ever been. Especially if you delve into elisp over time. I use Spacemacs, which is bloated and has bugs, but it has so many features that I haven't undertaken the massive endeavor to replace it from scratch yet.
  • On Desktop GUI Minimalism
    5 projects | news.ycombinator.com | 9 Sep 2023
    > Even in this article just a few sentences after stating we should start from first principles he then jumps into the assumption of the "desktop".

    Agree. Although I can see how the idea of "first principles" can be a very difficult starting point. A blank sheet of paper is a scary monster.

    There's a huge breadth and depth of non-"desktop" GUIs out there, some (like smartphones) are even wildly successful. It's good to explore them for inspiration. Some of my favourites:

    - Arcan (https://arcan-fe.com/about/) - I won't attempt to summarize, just dive in!

    - SailfishOS (https://sailfishos.org/) - mobile UI focused on interaction through gestures / swipes; I've used it as my daily driver for a couple years.

    - Speaking of mobiles, classic Nokia UIs allowed you to navigate to a specific item in the menu by pressing the corresponding digit on the dial pad. Once you learned where a particular item is, accessing e.g. your SMS inbox was extremely quick.

    - Apple Watch / WatchOS (https://www.apple.com/watchos/) - I've always loved the idea of a device where one of the primary interaction methods was a wheel/dial of some sort. The watch even gives you context-sensitive tactile feedback.

    - ZUIs in general (https://en.wikipedia.org/wiki/Zooming_user_interface) and the work of Jef Raskin in particular: https://en.wikipedia.org/wiki/Archy_(software) - this is the guy who helped design the Macintosh, but his other work took a radically different route.

    - Magit (https://magit.vc/). Many common git operations are reduced to a couple of keystrokes; the obscure features are more discoverable, and the cumbersome procedures (such as rebasing, or staging individual hunks) become simple and intuitive. Also check out transient (https://github.com/magit/transient), which is the "UI toolkit" that powers Magit.

  • Not trying to start a rumble, but why emacs
    6 projects | /r/emacs | 10 Jul 2023
    This can be done most comfortably with org-mode in emacs. It offers a lot of features, and they all operate on plain text. There are also nice integrations for git and languagetool, but I guess those are less exclusive.
  • Introducing Consult-GH
    5 projects | /r/emacs | 27 Jun 2023
    How does this differ from https://magit.vc/ ?
  • Magit
    9 projects | news.ycombinator.com | 26 Jun 2023
  • Warp is a modern, Rust-based terminal with AI built in
    2 projects | news.ycombinator.com | 22 Jun 2023
    I would rather see innovative tools that lessen our dependency on 50+ year old tech. This is still a glorified teletype. It uses AI to autosuggest git commands? Contrast with Magit[1], which (while it has a tiny bit of a learning curve, but also nowhere near 23M in funding) actually makes interacting with git a pleasure.

    [1]: https://magit.vc

  • A warning to always remember that Obsidian Sync is potentially dangerous
    3 projects | /r/ObsidianMD | 5 Jun 2023
    Also was using Emacs (org-mode)[https://orgmode.org] for years with (Magit)[https://magit.vc] package for git. I feel org-mod is a precursor to Roam Research, Obsidian, et al. Hit the spot for years but I wanted editing on mobile so that’s why I’m here. :)
  • Is orgmode really that much better than an equivalent workflow using vim + other tools?
    14 projects | /r/orgmode | 29 May 2023
    Then, I decided to look a little bit closer into one of them. I jumped into the project directory using fasd; with a couple keystrokes I created a git-worktree based on the PR; magit has pulled the remote branch and created a local worktree. All I needed was to press a couple of buttons, and it opened the diff between the local branch and origin/main. I am not very familiar with this module though. I opened dired, marked the module's folder, and ran magit-dired-log to see the git log, but only related to the files in that folder. I saw that Bob (my colleague) made some changes six months ago. Using org-capture I created a note in my work journal, tagging Bob. Now I can always find the note by opening Bob's card and browsing through all related notes.

vim-fugitive

Posts with mentions or reviews of vim-fugitive. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-16.
  • How to commit part of file in Git
    2 projects | news.ycombinator.com | 16 Feb 2024
    the only reason I do some git stuff in vim and not _always_ in the shell, is because tpope is very thoughtful and fugitive.vim provides nice ways to deal with hunks or hunk partials (visually selecting a range within a hunk, for i.e.)

    https://github.com/tpope/vim-fugitive/blob/master/doc/fugiti...

  • GitUI
    5 projects | news.ycombinator.com | 7 Jan 2024
    I agree, navigating blame history is incredibly useful, if only to save you from asking the wrong person about a particular change.

    Vim's Fugitive[1] can do this and also in Textmate to. So I would hope that most editor git plugins can.

    1. https://github.com/tpope/vim-fugitive

  • What are some plugins that you can't live without?
    16 projects | /r/neovim | 4 Dec 2023
    Git: vim-fugitive and gitsigns.nvim
  • Is it too late to learn emacs as a vim lifer?
    3 projects | /r/emacs | 3 Oct 2023
    You'll want to invest the time in learning Magit, which will change your life once you get the hang of it (and I was a heavy user of Fugitive in Vim previously!), and it's unlikely you'll find a better integration with GDB anywhere else on the planet than with Emacs, though I can't say that empirically. You just need to take the plunge and start learning it, then cut over and take the hit in productivity one day when you're feeling adventurous. You'll ultimately become far more powerful than you've ever been. Especially if you delve into elisp over time. I use Spacemacs, which is bloated and has bugs, but it has so many features that I haven't undertaken the massive endeavor to replace it from scratch yet.
  • webify.nvim - Open the current file in the remote's web interface (github or gitlab) or yank its URL
    4 projects | /r/vim | 26 Jun 2023
    For an option that works on Vim, if you already use tpope's vim-fugitive, there's vim-rhubarb (for GitHub) and fugitive-gitlab.vim (for GitLab).
  • Vim users who work without any plugins, how does your vimrc look like?
    7 projects | /r/vim | 30 May 2023
    I replace vim-fugitive with :! git
  • Switching from Emacs. My experience
    20 projects | /r/neovim | 24 May 2023
    The only thing I truly miss from Emacs is [Magit](https://magit.vc/) since I still consider it the best git wrapper available. It is just too good. Unfortunately [Neogit](https://github.com/TimUntersberger/neogit) is not quite there yet although I hope it makes it at some point. I didn't like [Fugitive]https://github.com/tpope/vim-fugitive), but I ended up finding a good enough workaround by using [Lazygit](https://github.com/jesseduffield/lazygit) through [Toggleterm](https://github.com/akinsho/toggleterm.nvim).
  • I like Tabasco.
    5 projects | /r/linuxmasterrace | 6 May 2023
    I do think VSCode is a great tool and I recommend it frequently to people, but I still want to set the record straight here. Yes, vim is obviously limited in the sense that as a CLI app it doesn't draw it's own PDF or HTML windows, that's fair. But it can remote control your favorite PDF viewer or browser for roughly the same functionality. I'm currently writing my thesis using vimtex and it's quite smooth. And all the other stuff you mention is implemented quite competently by various plugins like vim-fugitive, coc.nvim, vimspector and copilot.vim.
  • How Can I Configure Vim Plugins on Neovim?
    2 projects | /r/neovim | 23 Apr 2023
    But how do I do that for a vim package like vim fugitive
  • Github Permalink direct from Xcode?
    2 projects | /r/Xcode | 20 Apr 2023
    I'm using the vim-fugitive NeoVim plugin to get GitHub permalinks. Just select a portion of text, then use the command :GBrowse.

What are some alternatives?

When comparing magit and vim-fugitive you can also consider the following projects:

neogit - An interactive and powerful Git interface for Neovim, inspired by Magit

vim-gitgutter - A Vim plugin which shows git diff markers in the sign column and stages/previews/undoes hunks and partial hunks.

lazygit.nvim - Plugin for calling lazygit from within neovim.

gitsigns.nvim - Git integration for buffers

telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.

lazygit - simple terminal UI for git commands

vim-signify - :heavy_plus_sign: Show a diff using Vim its sign column.

delta - A syntax-highlighting pager for git, diff, and grep output

gina.vim - 👣 Asynchronously control git repositories in Neovim/Vim 8

gitui - Blazing 💥 fast terminal-ui for git written in rust 🦀

neovim - Vim-fork focused on extensibility and usability