More option tweaking

This commit is contained in:
Alex Yatskov 2015-04-18 09:59:39 +09:00
parent 5bcf756a8f
commit 10c2bb12a1
2 changed files with 10 additions and 5 deletions

View File

@ -74,7 +74,7 @@ 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:py2 = has('python') && !has('nvim') && !s:is_win && !has('win32unix') let s:py2 = has('python') && !has('nvim') && !s:is_win && !has('win32unix')
let s:ruby = has('ruby') && !has('nvim') && (v:version >= 703 || v:version == 702 && has('patch374')) let s:ruby = has('ruby') && !has('nvim') && (v:version >= 703 || v:version == 702 && has('patch374'))
let s:nvim = has('nvim') && !exists('##JobActivity') && !s:is_win let s:nvim = has('nvim') && exists('*jobwait') && !s:is_win
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 }
let s:TYPE = { let s:TYPE = {
@ -165,7 +165,7 @@ function! plug#end()
if has_key(plug, 'on') if has_key(plug, 'on')
let s:triggers[name] = { 'map': [], 'cmd': [] } let s:triggers[name] = { 'map': [], 'cmd': [] }
for cmd in s:to_a(plug.on) for cmd in s:to_a(plug.on)
if cmd =~ '^<Plug>.\+' if cmd =~? '^<Plug>.\+'
if empty(mapcheck(cmd)) && empty(mapcheck(cmd, 'i')) if empty(mapcheck(cmd)) && empty(mapcheck(cmd, 'i'))
call s:assoc(lod.map, cmd, name) call s:assoc(lod.map, cmd, name)
endif endif
@ -270,7 +270,7 @@ if s:is_win
endfunction endfunction
function! s:is_local_plug(repo) function! s:is_local_plug(repo)
return a:repo =~? '^[a-z]:' return a:repo =~? '^[a-z]:\|^[%~]'
endfunction endfunction
else else
function! s:rtp(spec) function! s:rtp(spec)
@ -740,6 +740,12 @@ function! s:update_impl(pull, force, args) abort
endtry endtry
endif endif
if has('nvim') && !exists('*jobwait') && threads > 1
echohl WarningMsg
echomsg 'vim-plug: update Neovim for parallel installer'
echohl None
endif
let s:update = { let s:update = {
\ 'start': reltime(), \ 'start': reltime(),
\ 'all': todo, \ 'all': todo,

View File

@ -10,7 +10,6 @@ set autowrite
set background=dark set background=dark
set backspace=indent,eol,start set backspace=indent,eol,start
set completeopt-=preview set completeopt-=preview
set cursorline
set encoding=utf-8 set encoding=utf-8
set expandtab set expandtab
set fileformats=unix,dos,mac set fileformats=unix,dos,mac
@ -38,7 +37,6 @@ set shortmess+=I
set smartcase set smartcase
set smartcase set smartcase
set smarttab set smarttab
set t_Co=246
set tabstop=4 set tabstop=4
set ttyfast set ttyfast
set wildmenu set wildmenu
@ -46,6 +44,7 @@ set wrapmargin=1
if has('gui_running') if has('gui_running')
set columns=150 set columns=150
set cursorline
set guioptions-=L set guioptions-=L
set guioptions-=R set guioptions-=R
set guioptions-=T set guioptions-=T