diff options
| author | Ahmed Abdelhalim <[email protected]> | 2017-11-08 14:56:18 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2017-11-08 14:56:18 +0200 |
| commit | fe004f55f608785050d6c82edd6271fe65a6555a (patch) | |
| tree | 11344300352fa960767470f1a4cbe4d8f50cc58c | |
| parent | 51baa2514c5d8f710874bf67e980f1ab1ce2ad07 (diff) | |
Update the plugin tool and add vue vim plugin
| -rw-r--r-- | .vimrc | 1 | ||||
| -rw-r--r-- | autoload/plug.vim | 7 |
2 files changed, 5 insertions, 3 deletions
@@ -37,6 +37,7 @@ Plug 'majutsushi/tagbar' Plug 'nathanaelkane/vim-indent-guides' Plug 'mhinz/vim-startify' Plug 'ElmCast/elm-vim', { 'for': 'elm' } +Plug 'posva/vim-vue', { 'for': ['js', 'vue'] } call plug#end() syntax on filetype plugin indent on diff --git a/autoload/plug.vim b/autoload/plug.vim index d720e2f..143c377 100644 --- a/autoload/plug.vim +++ b/autoload/plug.vim @@ -2246,15 +2246,16 @@ function! s:status() let unloaded = 0 let [cnt, total] = [0, len(g:plugs)] for [name, spec] in items(g:plugs) + let is_dir = isdirectory(spec.dir) if has_key(spec, 'uri') - if isdirectory(spec.dir) + if is_dir let [err, _] = s:git_validate(spec, 1) let [valid, msg] = [empty(err), empty(err) ? 'OK' : err] else let [valid, msg] = [0, 'Not found. Try PlugInstall.'] endif else - if isdirectory(spec.dir) + if is_dir let [valid, msg] = [1, 'OK'] else let [valid, msg] = [0, 'Not found.'] @@ -2263,7 +2264,7 @@ function! s:status() let cnt += 1 let ecnt += !valid " `s:loaded` entry can be missing if PlugUpgraded - if valid && get(s:loaded, name, -1) == 0 + if is_dir && get(s:loaded, name, -1) == 0 let unloaded = 1 let msg .= ' (not loaded)' endif |
