diff options
author | Max Christian Pohle | 2018-05-18 08:02:55 +0200 |
---|---|---|
committer | Max Christian Pohle | 2018-05-18 08:02:55 +0200 |
commit | 04a1c5f1b8e074397c0fbb156466d741b9f58600 (patch) | |
tree | 4a79237a517259c212634358538c35c610e89043 /vimrc-full | |
parent | 588ce387a75fdf8122e38f555f532d10bce35904 (diff) | |
download | vim-04a1c5f1b8e074397c0fbb156466d741b9f58600.tar.bz2 vim-04a1c5f1b8e074397c0fbb156466d741b9f58600.zip |
Added git command to the menu
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -506,6 +506,8 @@ if has("autocmd") | |||
506 | 09menu &Directory.Change\ to\ current\ buffers\ directory\ (local\ window)<tab>:lcd\ %:p:h | 506 | 09menu &Directory.Change\ to\ current\ buffers\ directory\ (local\ window)<tab>:lcd\ %:p:h |
507 | \ :lcd %:p:h<CR>:pwd<CR> | 507 | \ :lcd %:p:h<CR>:pwd<CR> |
508 | 508 | ||
509 | menu &Git.&Display\ recently\ changed\ files\ in\ location\ list | ||
510 | \ :call setloclist(0, map(systemlist("git show --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}}))<CR>:lopen<CR> | ||
509 | menu &Git.&Display\ last\ changes | 511 | menu &Git.&Display\ last\ changes |
510 | \ :let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f'}<CR>:SignifyRefresh<CR> | 512 | \ :let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f'}<CR>:SignifyRefresh<CR> |
511 | menu &Git.&Display\ significance\ of\ changes | 513 | menu &Git.&Display\ significance\ of\ changes |
@@ -1075,8 +1077,6 @@ autocmd VimEnter,WinEnter * exec ':set scrolljump='.winheight(0)/2 | |||
1075 | " display highlight group under the cursor | 1077 | " display highlight group under the cursor |
1076 | map <leader>h :echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')<CR> | 1078 | map <leader>h :echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')<CR> |
1077 | 1079 | ||
1078 | " call setqflist( map(systemlist("git show --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}})) | ||
1079 | " | ||
1080 | if filereadable(expand("~/.vimrc_background")) && filereadable(expand("~/.config/base16-shell/colortest")) | 1080 | if filereadable(expand("~/.vimrc_background")) && filereadable(expand("~/.config/base16-shell/colortest")) |
1081 | let g:base16_shell_path="~/.config/base16-shell/scripts" | 1081 | let g:base16_shell_path="~/.config/base16-shell/scripts" |
1082 | let base16colorspace=256 | 1082 | let base16colorspace=256 |