Commit 34c40dbd authored by Murukesh Mohanan's avatar Murukesh Mohanan

indent for ruby, yaml; other updates

parent d359caec
...@@ -97,7 +97,7 @@ let s:plug_tab = get(s:, 'plug_tab', -1) ...@@ -97,7 +97,7 @@ let s:plug_tab = get(s:, 'plug_tab', -1)
let s:plug_buf = get(s:, 'plug_buf', -1) let s:plug_buf = get(s:, 'plug_buf', -1)
let s:mac_gui = has('gui_macvim') && has('gui_running') let s:mac_gui = has('gui_macvim') && has('gui_running')
let s:is_win = has('win32') || has('win64') let s:is_win = has('win32') || has('win64')
let s:nvim = has('nvim') && exists('*jobwait') && !s:is_win let s:nvim = has('nvim-0.2') || (has('nvim') && exists('*jobwait') && !s:is_win)
let s:vim8 = has('patch-8.0.0039') && exists('*job_start') let s:vim8 = has('patch-8.0.0039') && exists('*job_start')
let s:me = resolve(expand('<sfile>:p')) let s:me = resolve(expand('<sfile>:p'))
let s:base_spec = { 'branch': 'master', 'frozen': 0 } let s:base_spec = { 'branch': 'master', 'frozen': 0 }
...@@ -442,16 +442,21 @@ function! plug#load(...) ...@@ -442,16 +442,21 @@ function! plug#load(...)
if !exists('g:plugs') if !exists('g:plugs')
return s:err('plug#begin was not called') return s:err('plug#begin was not called')
endif endif
let unknowns = filter(copy(a:000), '!has_key(g:plugs, v:val)') let names = a:0 == 1 && type(a:1) == s:TYPE.list ? a:1 : a:000
let unknowns = filter(copy(names), '!has_key(g:plugs, v:val)')
if !empty(unknowns) if !empty(unknowns)
let s = len(unknowns) > 1 ? 's' : '' let s = len(unknowns) > 1 ? 's' : ''
return s:err(printf('Unknown plugin%s: %s', s, join(unknowns, ', '))) return s:err(printf('Unknown plugin%s: %s', s, join(unknowns, ', ')))
end end
for name in a:000 let unloaded = filter(copy(names), '!get(s:loaded, v:val, 0)')
call s:lod([name], ['ftdetect', 'after/ftdetect', 'plugin', 'after/plugin']) if !empty(unloaded)
endfor for name in unloaded
call s:dobufread(a:000) call s:lod([name], ['ftdetect', 'after/ftdetect', 'plugin', 'after/plugin'])
return 1 endfor
call s:dobufread(unloaded)
return 1
end
return 0
endfunction endfunction
function! s:remove_triggers(name) function! s:remove_triggers(name)
...@@ -575,7 +580,7 @@ function! s:infer_properties(name, repo) ...@@ -575,7 +580,7 @@ function! s:infer_properties(name, repo)
let uri = repo let uri = repo
else else
if repo !~ '/' if repo !~ '/'
let repo = 'vim-scripts/'. repo throw printf('Invalid argument: %s (implicit `vim-scripts'' expansion is deprecated)', repo)
endif endif
let fmt = get(g:, 'plug_url_format', 'https://git::@github.com/%s.git') let fmt = get(g:, 'plug_url_format', 'https://git::@github.com/%s.git')
let uri = printf(fmt, repo) let uri = printf(fmt, repo)
...@@ -1063,7 +1068,7 @@ function! s:update_finish() ...@@ -1063,7 +1068,7 @@ function! s:update_finish()
elseif has_key(spec, 'tag') elseif has_key(spec, 'tag')
let tag = spec.tag let tag = spec.tag
if tag =~ '\*' if tag =~ '\*'
let tags = s:lines(s:system('git tag --list '.string(tag).' --sort -version:refname 2>&1', spec.dir)) let tags = s:lines(s:system('git tag --list '.s:shellesc(tag).' --sort -version:refname 2>&1', spec.dir))
if !v:shell_error && !empty(tags) if !v:shell_error && !empty(tags)
let tag = tags[0] let tag = tags[0]
call s:log4(name, printf('Latest tag for %s -> %s', spec.tag, tag)) call s:log4(name, printf('Latest tag for %s -> %s', spec.tag, tag))
...@@ -2022,7 +2027,7 @@ function! s:git_validate(spec, check_branch) ...@@ -2022,7 +2027,7 @@ function! s:git_validate(spec, check_branch)
" Check tag " Check tag
if has_key(a:spec, 'tag') if has_key(a:spec, 'tag')
let tag = s:system_chomp('git describe --exact-match --tags HEAD 2>&1', a:spec.dir) let tag = s:system_chomp('git describe --exact-match --tags HEAD 2>&1', a:spec.dir)
if a:spec.tag !=# tag if a:spec.tag !=# tag && a:spec.tag !~ '\*'
let err = printf('Invalid tag: %s (expected: %s). Try PlugUpdate.', let err = printf('Invalid tag: %s (expected: %s). Try PlugUpdate.',
\ (empty(tag) ? 'N/A' : tag), a:spec.tag) \ (empty(tag) ? 'N/A' : tag), a:spec.tag)
endif endif
......
set shiftwidth=2 softtabstop=2 tabstop=2 setlocal shiftwidth=2 softtabstop=2 tabstop=2
set expandtab setlocal expandtab
setlocal shiftwidth=2 softtabstop=2 tabstop=2
setlocal expandtab
...@@ -14,7 +14,7 @@ filetype on ...@@ -14,7 +14,7 @@ filetype on
filetype plugin on filetype plugin on
filetype plugin indent on filetype plugin indent on
syntax enable syntax enable
set grepprg=grep\ -nH set grepprg=grep\ -nRH
" Spaces are better than a tab character " Spaces are better than a tab character
" set expandtab " set expandtab
...@@ -135,6 +135,7 @@ Plug 'gabrielelana/vim-markdown', {'for': 'markdown'} ...@@ -135,6 +135,7 @@ Plug 'gabrielelana/vim-markdown', {'for': 'markdown'}
Plug 'majutsushi/tagbar', {'for': ['cpp', 'c', 'go', 'sh', 'javascript']} Plug 'majutsushi/tagbar', {'for': ['cpp', 'c', 'go', 'sh', 'javascript']}
Plug 'godlygeek/tabular' Plug 'godlygeek/tabular'
Plug 'dhruvasagar/vim-table-mode' Plug 'dhruvasagar/vim-table-mode'
Plug 'tpope/vim-liquid', {'for': ['html', 'markdown']}
if executable('cmake') if executable('cmake')
" YCM command lifted from vim-plug readme " YCM command lifted from vim-plug readme
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment