@@ 22,7 22,7 @@
" Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
"
" " On-demand loading
-" Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
+" Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
" Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
"
" " Using a non-default branch
@@ 352,7 352,7 @@ function! plug#end()
endif
let lod = { 'ft': {}, 'map': {}, 'cmd': {} }
- if exists('g:did_load_filetypes')
+ if get(g:, 'did_load_filetypes', 0)
filetype off
endif
for name in g:plugs_order
@@ 2621,26 2621,34 @@ function! s:preview_commit()
let sha = matchstr(getline('.'), '^ \X*\zs[0-9a-f]\{7,9}')
if empty(sha)
- return
+ let name = matchstr(getline('.'), '^- \zs[^:]*\ze:$')
+ if empty(name)
+ return
+ endif
+ let title = 'HEAD@{1}..'
+ let command = 'git diff --no-color HEAD@{1}'
+ else
+ let title = sha
+ let command = 'git show --no-color --pretty=medium '.sha
+ let name = s:find_name(line('.'))
endif
- let name = s:find_name(line('.'))
if empty(name) || !has_key(g:plugs, name) || !isdirectory(g:plugs[name].dir)
return
endif
if exists('g:plug_pwindow') && !s:is_preview_window_open()
execute g:plug_pwindow
- execute 'e' sha
+ execute 'e' title
else
- execute 'pedit' sha
+ execute 'pedit' title
wincmd P
endif
- setlocal previewwindow filetype=git buftype=nofile nobuflisted modifiable
+ setlocal previewwindow filetype=git buftype=nofile bufhidden=wipe nobuflisted modifiable
let batchfile = ''
try
let [sh, shellcmdflag, shrd] = s:chsh(1)
- let cmd = 'cd '.plug#shellescape(g:plugs[name].dir).' && git show --no-color --pretty=medium '.sha
+ let cmd = 'cd '.plug#shellescape(g:plugs[name].dir).' && '.command
if s:is_win
let [batchfile, cmd] = s:batchfile(cmd)
endif
@@ 2766,9 2774,9 @@ function! s:snapshot(force, ...) abort
1
let anchor = line('$') - 3
let names = sort(keys(filter(copy(g:plugs),
- \'has_key(v:val, "uri") && !has_key(v:val, "commit") && isdirectory(v:val.dir)')))
+ \'has_key(v:val, "uri") && isdirectory(v:val.dir)')))
for name in reverse(names)
- let sha = s:git_revision(g:plugs[name].dir)
+ let sha = has_key(g:plugs[name], 'commit') ? g:plugs[name].commit : s:git_revision(g:plugs[name].dir)
if !empty(sha)
call append(anchor, printf("silent! let g:plugs['%s'].commit = '%s'", name, sha))
redraw
@@ 1,66 1,66 @@
" Generated by vim-plug
-" 29.07.2022 (пт) 0:37:51
+" Mon 20 Feb 2023 11:22:45
" :source this file in vim to restore the snapshot
" or execute: vim -S snapshot.vim
-silent! let g:plugs['any-jump.vim'].commit = '67b17372342826355c015427a5cdbda7c5d3e3b9'
+silent! let g:plugs['any-jump.vim'].commit = '9768403b6381ce3758cebac9613910c0160969e3'
silent! let g:plugs['bufferize.vim'].commit = '013857c12340bc14e285727eaf7d0bfb9807c768'
silent! let g:plugs['dart-vim-plugin'].commit = '81e50e80329e5eac2c115f45585b1838a614d07a'
silent! let g:plugs['deleft.vim'].commit = 'e9b6e54dcca675aed93ad32dc26a0555b2fb83db'
-silent! let g:plugs['fzf'].commit = 'ecc418ba77e52660ffdd9ed84727b12c3f377680'
-silent! let g:plugs['fzf.vim'].commit = 'c311c0a95fc2529c26ab36a8f530e9dd4426304c'
-silent! let g:plugs['jedi-vim'].commit = 'e82d07faa17c3b3fe04b4fa6ab074e8e8601a596'
+silent! let g:plugs['fzf'].commit = 'b1459c79cfc004dd7944f4db3ffb5a4ae20569ca'
+silent! let g:plugs['fzf.vim'].commit = 'dc71692255b62d1f67dc55c8e51ab1aa467b1d46'
+silent! let g:plugs['jedi-vim'].commit = 'be483a2dcb63e992b02c5a0faff5d555720246fc'
+silent! let g:plugs['kdl.vim'].commit = '0396a7a063f2ffe627e4f5b16d27ffd864dd7d12'
silent! let g:plugs['lens.vim'].commit = '099c3502d001f7081edf113de57e8b1cfd121c55'
-silent! let g:plugs['lightline.vim'].commit = 'b02ef0d9f253dfc1cbb3f340b74998d7a4db0bf6'
-silent! let g:plugs['linediff.vim'].commit = 'c7710dbc59881b038ca064b6c54fe482303e8304'
+silent! let g:plugs['lightline.vim'].commit = 'b1e91b41f5028d65fa3d31a425ff21591d5d957f'
+silent! let g:plugs['linediff.vim'].commit = 'b4d3c3f03eed00caa741c2650e13db5b7b7ce0ef'
silent! let g:plugs['multichange.vim'].commit = '9684226c68d95810c078a46802b198950a04f2fe'
silent! let g:plugs['nerdtree'].commit = 'fc85a6f07c2cd694be93496ffad75be126240068'
silent! let g:plugs['nerdtree-execute'].commit = '4e39f0174335f9fc125c5cb30641a2017c4459b2'
-silent! let g:plugs['nord-vim'].commit = '77fe4b3f0ee215a6ef5ef5e60a66d0f44c3ed43c'
+silent! let g:plugs['nord-vim'].commit = '0748955e9e8d9770b44f2bec8456189430b37d9d'
silent! let g:plugs['popdef'].commit = 'f77bb1a1d02bf876bd0d7be6e53786b16b2a4840'
-silent! let g:plugs['prolog.vim'].commit = '280a5ec5d219900042585a862e5fab0c44dcd733'
-silent! let g:plugs['rust.vim'].commit = '4aa69b84c8a58fcec6b6dad6fe244b916b1cf830'
-silent! let g:plugs['sideways.vim'].commit = 'ab20cc8a6a7cb95679f99bc4ec724544f9b94c62'
-silent! let g:plugs['splitjoin.vim'].commit = '1f7d5841b84b4dd07b7774df5d0601dfdd1efe4e'
-silent! let g:plugs['switch.vim'].commit = '900c5d3ee79b1771c5e07bf7290068ea35881756'
+silent! let g:plugs['prolog.vim'].commit = '9ce494aba8e9fb90fc5c987a1b87118d6e8192c9'
+silent! let g:plugs['rust.vim'].commit = '889b9a7515db477f4cb6808bef1769e53493c578'
+silent! let g:plugs['sideways.vim'].commit = 'e683ed0fc57eda718c6b28dce0ff5190089d13d3'
+silent! let g:plugs['splitjoin.vim'].commit = 'cdc1eb05496c2ecdeea7c7bf7ab0b6ab5b421f24'
+silent! let g:plugs['switch.vim'].commit = '41fec8581f4816291481ab6c6e0516bf904d4a7a'
silent! let g:plugs['tabman.vim'].commit = '8f2ca9268a2ec1bcb29231b5b3f872101d169901'
silent! let g:plugs['tabular'].commit = '339091ac4dd1f17e225fe7d57b48aff55f99b23a'
-silent! let g:plugs['ultisnips'].commit = '1edcb40ce749c47d5da42ab02dcdf21f9279bfbb'
+silent! let g:plugs['ultisnips'].commit = '0ad238b1910d447476b2d98f593322c1cdb71285'
silent! let g:plugs['undoquit.vim'].commit = '74d2a1fc51af91d8b758ad85fb236b6476c8ed0c'
-silent! let g:plugs['undotree'].commit = 'bfc9b060c9e84497b15b4d602095ba008383b664'
-silent! let g:plugs['vim-autotag'].commit = 'bd3d8422b6b357c6c8d55d6d222bb8b1c0881e7a'
+silent! let g:plugs['undotree'].commit = 'b6fdb95db53b7ceb23ddfe8a8211a3135d98eef0'
+silent! let g:plugs['vim-autotag'].commit = 'aacffed70ed93373339fc74a3a5494e4a729e143'
silent! let g:plugs['vim-better-whitespace'].commit = '1b22dc57a2751c7afbc6025a7da39b7c22db635d'
-silent! let g:plugs['vim-codefmt'].commit = '406686de5855ebb9dc2b9558d53983e65ef5c64e'
-silent! let g:plugs['vim-commentary'].commit = '3654775824337f466109f00eaf6759760f65be34'
-silent! let g:plugs['vim-delve'].commit = '5c8809d9c080fd00cc82b4c31900d1bc13733571'
+silent! let g:plugs['vim-codefmt'].commit = '1b76987b6719bee259ba8d1e03a1e7f624a3615f'
+silent! let g:plugs['vim-commentary'].commit = 'e87cd90dc09c2a203e13af9704bd0ef79303d755'
+silent! let g:plugs['vim-delve'].commit = '41d6ad294fb6dd5090f5f938318fc4ed73b6e1ea'
silent! let g:plugs['vim-easymotion'].commit = 'b3cfab2a6302b3b39f53d9fd2cd997e1127d7878'
-silent! let g:plugs['vim-flog'].commit = 'fb137707b84a328d3f1b53d22894e3c52f4a6ddb'
-silent! let g:plugs['vim-fugitive'].commit = '66a921bbe38bea19f6b581c8a56d5a8a41209e35'
+silent! let g:plugs['vim-flog'].commit = '2ba8af2c9682e3560db5b813d10acf3ba3415bc1'
+silent! let g:plugs['vim-fugitive'].commit = '62f42f013d866139fa23068ac2651b3f7e05a56f'
silent! let g:plugs['vim-git'].commit = '5143bea9ed17bc32163dbe3ca706344d79507b9d'
-silent! let g:plugs['vim-go'].commit = '7ec0a19a78a453686cb5c9776e506375562f9a1f'
-silent! let g:plugs['vim-graphql'].commit = '4bf5d33bda83117537aa3c117dee5b9b14fc9333'
+silent! let g:plugs['vim-go'].commit = 'b8a41085bfd67fee97ad075c6df65590ce7417a7'
+silent! let g:plugs['vim-graphql'].commit = '996749a7d69a3709768fa8c4d259f79b5fd9bdb1'
silent! let g:plugs['vim-grepper'].commit = '2b93535752ffcb312f9fab73d90e80dc9f2e60fc'
silent! let g:plugs['vim-hcl'].commit = '80a497d14d8ca72ae5ee4b9cc6b17fc57b46a407'
silent! let g:plugs['vim-indent-object'].commit = '5c5b24c959478929b54a9e831a8e2e651a465965'
-silent! let g:plugs['vim-maktaba'].commit = '80b47c5f636c0ed0915af378b47428a83346a699'
+silent! let g:plugs['vim-interestingwords'].commit = 'e59f97aca15c6180e6f3aceaf4f7b50ca04326ed'
+silent! let g:plugs['vim-maktaba'].commit = '5d416e84d024538f5e5cf25c394d081802f0a35e'
silent! let g:plugs['vim-markology'].commit = '9681b3f7a34b9fd62ac6706d05c0b63833c5a0ed'
-silent! let g:plugs['vim-misc'].commit = '3e6b8fb6f03f13434543ce1f5d24f6a5d3f34f0b'
-silent! let g:plugs['vim-notes'].commit = 'e465a0a987dbacdf7291688215b8545f8584d409'
silent! let g:plugs['vim-peekaboo'].commit = 'cc4469c204099c73dd7534531fa8ba271f704831'
silent! let g:plugs['vim-perl'].commit = 'f40ece108099df561157ed7fdb764f8c183a8bfc'
silent! let g:plugs['vim-racer'].commit = 'd1aead98a936cd8165b3329511d7c987226eb3a6'
silent! let g:plugs['vim-repeat'].commit = '24afe922e6a05891756ecf331f39a1f6743d3d5a'
silent! let g:plugs['vim-rsi'].commit = '4c673fb6c70652a09682c50a0e308184731ca70b'
-silent! let g:plugs['vim-surround'].commit = 'bf3480dc9ae7bea34c78fbba4c65b4548b5b1fea'
+silent! let g:plugs['vim-surround'].commit = '3d188ed2113431cf8dac77be61b842acb64433d9'
silent! let g:plugs['vim-tmux'].commit = 'cfe76281efc29890548cf9eedd42ad51c7a1faf0'
silent! let g:plugs['vim-toml'].commit = '3c5face8e8944a217af45bc5bb708ff7dfcf1a54'
silent! let g:plugs['vim-unstack'].commit = '9b191419b4d3f26225a5ae3df5e409c62b426941'
-silent! let g:plugs['vim-virtualenv'].commit = 'b1150223cd876f155ed7a3b2e285ed33f6f93873'
+silent! let g:plugs['vim-virtualenv'].commit = 'b81912f090918ec63b98d0f41117fb44c0afe646'
silent! let g:plugs['vim-yaml'].commit = 'dce19542d5ec1663183b0f6844ec663b5d1f3d24'
silent! let g:plugs['vimshell.vim'].commit = 'ee683538f57aaf5094db9860f67f4957a763ffb4'
-silent! let g:plugs['vimtex'].commit = 'b9ad861cd7ab1a55eb5f64b3e2e0043d2b835946'
+silent! let g:plugs['vimtex'].commit = '5ae0d8b8a3362618f9e10029a907f1888f9acd62'
silent! let g:plugs['vimux-golang'].commit = '1c5ecbef3ee81c66236c218b73c87b89016fb1ef'
-silent! let g:plugs['vista.vim'].commit = 'f9c8c8ad4135346a945e1ebfb00b723976d92dfc'
+silent! let g:plugs['vista.vim'].commit = '33774aff5d8b224f24c2e4c6015c613c1a17bf74'
PlugUpdate!