-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
plugins.vcs.vim
70 lines (58 loc) · 2.03 KB
/
plugins.vcs.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
" plugins.vcs.vim
"
" Maintained by Claud D. Park <[email protected]>
" https://www.posquit0.com/
"" For syntax highlighting and other Git niceties
"" Plugin: Vim Git {{{
"" }}}
"" The best Git wrapper
"" Plugin: Vim Fugitive {{{
" Key mappings for convenience
nnoremap <leader>gb :Gbrowse<CR>
nnoremap <leader>gs :Gstatus<CR>:20wincmd +<CR>
nnoremap <leader>gw :Gwrite<CR>
nnoremap <leader>gci :Gcommit --verbose<CR>
nnoremap <leader>gfd :Gvdiff<CR>
nnoremap <leader>gfD :Gvdiff HEAD<CR>
nnoremap <leader>gfb :Git blame -w<CR>:vertical resize 26<CR>
"" }}}
"" A git commit browser in Vim
"" Plugin: Git Commit Browser {{{
" Key mappings for convenience
nnoremap <leader>gl :GV --all<CR>
nnoremap <leader>gfl :GV! --all<CR>
"" }}}
"" Indicate added, modified and removed lines based on data of VCS
"" Plugin: Vim Signify {{{
" Key mappings for hunk jumping
nmap <leader>gn <plug>(signify-next-hunk)
nmap <leader>gN <plug>(signify-prev-hunk)
" Key mappings for hunk diffing
nnoremap <leader><leader>d :SignifyHunkDiff<CR>
"" }}}
"" More pleasant editing on commit messagess
"" Plugin: Committia {{{
" Specify the width of the edit window
let g:committia_edit_window_width=100
" If the value is 'always', committia.vim always employs single column mode
let g:committia_use_singlecolumn='fallback'
" If the width of window is narrower than the value, committia.vim employs single column mode
let g:committia_min_window_width=180
"" }}}
"" Make browsing Vim's powerful undo tree less painful
"" Plugin: Gundo {{{
" Map GundoToggle to <F12>
nnoremap <silent> <F12> :GundoToggle<CR>
" Set the horizontal width of Gundo graph
let g:gundo_width=40
" Force the preview window below current windows
let g:gundo_preview_bottom=1
" Set 1 to open the right side instead of the left
let g:gundo_right=0
" Disable Gundo entirely if machine not support python
if v:version < '703' || !has('python')
let g:gundo_disable=1
endif
" Rendering diff automatically with cursor move
let g:gundo_auto_preview=1
"" }}}