diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-08-24 12:37:31 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-08-24 12:37:31 +0200 |
commit | 8f5134aef8c4162235892d87407275f447e54e40 (patch) | |
tree | 1a69b34bcbe28d2a2cf62805c11ac7b48420da9d /doc/ft-gitcommit-plugin.txt | |
parent | be8d039e02e4e4219639935aafa1194932e980e7 (diff) | |
download | vim-polyglot-8f5134aef8c4162235892d87407275f447e54e40.tar.gz vim-polyglot-8f5134aef8c4162235892d87407275f447e54e40.zip |
Include docs of plugins
Diffstat (limited to 'doc/ft-gitcommit-plugin.txt')
-rw-r--r-- | doc/ft-gitcommit-plugin.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/ft-gitcommit-plugin.txt b/doc/ft-gitcommit-plugin.txt new file mode 100644 index 00000000..3d6b9055 --- /dev/null +++ b/doc/ft-gitcommit-plugin.txt @@ -0,0 +1,25 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 + +GIT COMMIT *ft-gitcommit-plugin* + +One command, :DiffGitCached, is provided to show a diff of the current commit +in the preview window. It is equivalent to calling "git diff --cached" plus +any arguments given to the command. + +GIT REBASE *ft-gitrebase-plugin* + +In a gitrebase filetype buffer, the following commands are provided: + + `:Pick` Changes the cursor line to a `pick` line. + `:Squash` Changes the cursor line to a `squash` line + `:Edit` Changes the cursor line to an `edit` line + `:Reword` Changes the cursor line to a `reword` line + `:Fixup` Changes the cursor line to a `fixup` line + `:Drop` Changes the cursor line to a `drop` line + `:Cycle` Cycles between the first 5 gitrebase commands + +To make the `:Cycle` command more useful, it might be mapped, e.g. > + nnoremap <buffer> <silent> S :Cycle<CR> +< + +endif |