Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neoclide/vim-easygit
A git wrapper focus on simplity and usability
https://github.com/neoclide/vim-easygit
easygit
Last synced: 3 months ago
JSON representation
A git wrapper focus on simplity and usability
- Host: GitHub
- URL: https://github.com/neoclide/vim-easygit
- Owner: neoclide
- License: mit
- Created: 2016-01-04T10:00:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-08T11:58:54.000Z (over 6 years ago)
- Last Synced: 2024-08-08T16:15:00.423Z (7 months ago)
- Topics: easygit
- Language: Vim script
- Homepage:
- Size: 61.5 KB
- Stars: 38
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Easygit
[](https://github.com/neoclide/vim-easygit/issues)
[](LICENSE)
[](doc/easygit.txt)A git wrapper plugin made to replace [fugitive](https://github.com/tpope/vim-fugitive),
it can be used together with fugitive as commands are disabled by default.The goal make cleaner code, and be more friendly to user (especially using with
macvim)## Features
* **Consist behaviour**, command always work in the git directory of current file
* **Be quiet**, no ugly **press any key to continue**, and use dispatch method when
possible* **Clean code**, avoid madness hack like errorformat etc.
* **Friendly keymaping**, when enter temporary buffer precess `q` would help you to
quit, no close window if opened by `edit` command* **Expose flexible API**, in `autoload/easygit.vim`
* **Works good with other plugins** since filetype is nofile, your mru plugin and
status line plugin should easily ignore them.## Commands
Commands are disabled by default, if you want to use them, you have to add
let g:easygit_enable_command = 1
To your `.vimrc`
* *Gcd* make vim cd to git root directory.
* *Glcd* make vim lcd to git root directory.
* *Gblame* Git blame current file, you can use `p` to preview commit and `d`
to diff with current file.
* *GcommitCurrent* Git commit current file with message as command args.
* *GdiffThis* Side by side diff of current file with head or any ref.
* *Gcommit* Git commit with command line argument.
* *Gedit* Edit git reference from git show.
* *Gdiff* Git diff with command line argument.
* *Gremove* Git remove with command line argument, remove current file
when arguments empty.
* *Grename* Rename current by git mv, file in buffer list would react the changes.
* *Gmove* Git mv with command line argument.
* *Gcheckout* Git checkout with command line argument.
* *Gpush* Git push with arguments, dispatch when possible.
* *Gpull* Git pull with arguments, dispatch when possible.
* *Gfetch* Git fetch with arguments, dispatch when possible.
* *Gadd* Git add with arguments.
* *Gstatus* Show git status in a temporary buffer.
* *Ggrep* Git grep repo of current file, and show result in quickfix
* *Gmerge* Git merge with branch completeThose commands have reasonable complete setting, use `` to complete
commands.