Compare commits

...

2 Commits

Author SHA1 Message Date
b2d961aa32 Merge branch 'master' of git.246060.ru:f1x1t/vimrc 2022-04-28 08:19:21 +03:00
1d5ffafb9d Bitbake 2022-04-28 08:18:32 +03:00
2 changed files with 7 additions and 3 deletions

View File

@ -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
@ -2766,9 +2766,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

4
vimrc
View File

@ -140,6 +140,10 @@ Plug 'xuhdev/vim-latex-live-preview'
" MAN "
Plug 'jez/vim-superman'
" https://github.com/kergoth/vim-bitbake
" Bitbake "
Plug 'kergoth/vim-bitbake'
" https://github.com/python-mode/python-mode "
" Python "
Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }