From 04a1c5f1b8e074397c0fbb156466d741b9f58600 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Fri, 18 May 2018 08:02:55 +0200 Subject: Added git command to the menu --- vimrc-full | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vimrc-full b/vimrc-full index 4881069..5c921fb 100644 --- a/vimrc-full +++ b/vimrc-full @@ -506,6 +506,8 @@ if has("autocmd") 09menu &Directory.Change\ to\ current\ buffers\ directory\ (local\ window):lcd\ %:p:h \ :lcd %:p:h:pwd + menu &Git.&Display\ recently\ changed\ files\ in\ location\ list + \ :call setloclist(0, map(systemlist("git show --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}})):lopen menu &Git.&Display\ last\ changes \ :let g:signify_vcs_cmds={'git': 'git diff --no-color --no-ext-diff -U0 HEAD^ -- %f'}:SignifyRefresh menu &Git.&Display\ significance\ of\ changes @@ -1075,8 +1077,6 @@ autocmd VimEnter,WinEnter * exec ':set scrolljump='.winheight(0)/2 " display highlight group under the cursor map h :echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') -" call setqflist( map(systemlist("git show --name-only --pretty=''"), {_, p->{'filename': fnamemodify(p, ':.')}})) -" if filereadable(expand("~/.vimrc_background")) && filereadable(expand("~/.config/base16-shell/colortest")) let g:base16_shell_path="~/.config/base16-shell/scripts" let base16colorspace=256 -- cgit v1.2.3