aboutsummaryrefslogtreecommitdiff
path: root/vimrc-full
diff options
context:
space:
mode:
authorMax Christian Pohle2018-05-18 08:02:55 +0200
committerMax Christian Pohle2018-05-18 08:02:55 +0200
commit04a1c5f1b8e074397c0fbb156466d741b9f58600 (patch)
tree4a79237a517259c212634358538c35c610e89043 /vimrc-full
parent588ce387a75fdf8122e38f555f532d10bce35904 (diff)
downloadvim-04a1c5f1b8e074397c0fbb156466d741b9f58600.tar.bz2
vim-04a1c5f1b8e074397c0fbb156466d741b9f58600.zip
Added git command to the menu
Diffstat (limited to 'vimrc-full')
-rw-r--r--vimrc-full4
1 files 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")
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
1076map <leader>h :echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')<CR> 1078map <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"
1080if filereadable(expand("~/.vimrc_background")) && filereadable(expand("~/.config/base16-shell/colortest")) 1080if 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
..