64b226cf1b
Assuming line 28 was deleted, the block header for a unified diff looks like: +28,1 -27,0 This is true for usual suspects like `diff -U0` and `git diff -U0`, but unfortunately not for Fossil. It would report this instead: +28,1 -0,0 This lead our code to believe that line 1 instead of line 28 was deleted. And maybe it's right about that. There does not seem to be a standard for patch/diff output, but according to my knowledge Fossil is the only VCS doing that. Anyway, this commit's change should make the detection of a deleted first line work for every VCS again. Fixes https://github.com/mhinz/vim-signify/issues/282 |
||
---|---|---|
autoload | ||
doc | ||
pictures | ||
plugin | ||
.gitignore | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
showcolors.bash |
Signify (or just Sy) uses the sign column to indicate added, modified and removed lines in a file that is managed by a version control system (VCS).
- Supports git, mercurial, darcs, bazaar, subversion, cvs, rcs, fossil, accurev, perforce, tfs.
- Asynchronous execution of VCS tools for Vim 7.4.1967+ and Neovim.
- Preserves signs from other plugins.
- Handles nested repositories controlled by different VCS.
- Provides mappings for navigating hunks ("blocks of changed lines").
- Provides an operator that acts on hunks.
- Alternative workflow: Disable the plugin by default and toggle it per buffer on demand.
- Optional line highlighting.
- Optional skipping of filetypes/filenames.
- Optional stats in the statusline.
- Works out of the box, but allows fine-grained configuration.
- Great documentation and handsome maintainers!
Similar plugin for git: vim-gitgutter
Installation
Use your favorite plugin manager, e.g. using vim-plug:
Plug 'mhinz/vim-signify'
Documentation
- Understand how the plugin works:
:h signify-modus-operandi
- Spare the plugin some work and read:
:h g:signify_vcs_list
Demo
Author and Feedback
If you like this plugin, star it! It's a great way of getting feedback. The same goes for reporting issues or feature requests.
Contact: Twitter
Co-maintainer: @jamessan