1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:10:05 +08:00
SpaceVim/bundle/gina.vim/ftplugin/gina-status.vim

47 lines
1.4 KiB
VimL
Vendored

setlocal nomodeline
setlocal nobuflisted
setlocal nolist nospell
setlocal nowrap nofoldenable
setlocal nonumber norelativenumber
setlocal foldcolumn=0 colorcolumn=0
call gina#action#include('browse')
call gina#action#include('chaperon')
call gina#action#include('compare')
call gina#action#include('diff')
call gina#action#include('edit')
call gina#action#include('export')
call gina#action#include('index')
call gina#action#include('patch')
call gina#action#include('show')
call gina#action#include('yank')
if g:gina#command#status#use_default_aliases
call gina#action#shorten('edit')
call gina#action#shorten('index')
endif
if g:gina#command#status#use_default_mappings
nmap <buffer> <Return> <Plug>(gina-edit)zv
nmap <buffer> dd <Plug>(gina-diff)
nmap <buffer> DD <Plug>(gina-diff-vsplit)
nmap <buffer> cc <Plug>(gina-compare)
nmap <buffer> CC <Plug>(gina-compare-tab)
nmap <buffer> pp <Plug>(gina-patch)
nmap <buffer> PP <Plug>(gina-patch-tab)
nmap <buffer> !! <Plug>(gina-chaperon)
nmap <buffer> << <Plug>(gina-index-stage)
nmap <buffer> >> <Plug>(gina-index-unstage)
nmap <buffer> -- <Plug>(gina-index-toggle)
nmap <buffer> == <Plug>(gina-index-discard)
vmap <buffer> << <Plug>(gina-index-stage)
vmap <buffer> >> <Plug>(gina-index-unstage)
vmap <buffer> -- <Plug>(gina-index-toggle)
vmap <buffer> == <Plug>(gina-index-discard)
endif