3

gitTools 0.0.1 -- Set of tools to perform git commands.

 2 years ago
source link: https://www.vim.org/scripts/script.php?script_id=6013%230.0.1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Set of tools to perform git commands. : vim online

gitTools : Set of tools to perform git commands.

 script karma  Rating 0/0, Downloaded by 3  Comments, bugs, improvements  Vim wiki

created by Javier Puigdevall   script type utility   description Allows to launch several git commands from within vim.

This is a port of plugin svnTools, modified to use git instead of svn.

Use :Gith to show the command help.


Abridged command help:

- Info:
    :Giti                 : get current revision info.

- Blame:
    :Gitbl                : get blame of current file.

- Status:
    :Gitst                : show file's status (conceal symbols: X and ?).
    :Gitsta               : show status files (show all symbols).
    :Gitstf               : show current file status.
    :Gitstd               : show current directory status.
    :Gitsth               : show the git status symbols' help.

- Log:
    :Gitl [NUM]           : get subversion log (num. commits, defaults to 3000).
    :Gitls PATTERN [NUM]  : log search pattern (num. commits, defaults to 3000).

- Diff:
    Basic:
      :Gitd PATH          : get diff of changes on the selected path.
      :Gitdf              : get diff of changes on current file.
      :Gitdd              : get diff of changes on current file's directory.
      :Gitda              : get diff of (all) changes on current workind directory.
    Advanced: allows to filter files and binaries.
      :GitD PATH [FLAGS]  : get diff of changes on selected path.
      :GitDD [FLAGS]      : get diff of changes on current file's directory.
      :GitDA [FLAGS]      : get diff of (all) changes on workind directory.
    Gitdvdr              : when placed on a git log and diff file (after Gitr/Gitdd/Gitdf/Gitda)
                           get each file changes vimdiff.

- Vimdiff:
    Basic:
      :Gitvdf             : get vimdiff of current file changes.
      :Gitvd PATH         : get vimdiff of (all) changes on working dir.
      :Gitvdd             : get vimdiff of current file's directory changes.
      :Gitvda             : get vimdiff of (all) files with changes on working dir.
    Advanced: allows to filter files and binaries.
      :GitvD PATH [FLAGS] : get vimdiff of the files with changes on the selected path.
      :GitvDD [FLAGS]     : get vimdiff of the files with changes on current file's directory.
      :GitvDA [FLAGS]     : get vimdiff of the files with changes on working directory.
    FLAGS:
      B:  show binaries.
      NB: skip binaries (default).
      EQ: show equal (default).
      NEQ: skip equal.
      +pattern (keep only files with pattern).
      -pattern (skip all files with pattern).
    Gitvdr REV           : get revision log and open the selected revision changes with vimdiff.

- Revision:
    :Gitr REV             : get diff of selected revision number.
    :Gitsh REV            : show the file on the requested revision number

PENDING: port of reselve and merge commands from svnTools.vim.

  install details Minimum version: Vim 7.0+
Recomended version: Vim 8.0+

Install vimball:
download gitTools_0.0.1.vmb
vim gitTools_0.0.1.vmb
:so %
:q  

rate this script Life Changing Helpful Unfulfilling 

script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes

gitTools_0.0.1.vmb 0.0.1 2022-04-19 7.0 Javier Puigdevall Initial upload

ip used for rating: 141.164.63.164


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK