From 514e52896c9a2a189e4bee04e3491acd9aa1003b Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Tue, 21 Dec 2021 05:29:22 +0800 Subject: [PATCH] update dirvish cursorline --- autoload/asclib/utils.vim | 11 +++++++---- bundle.vim | 6 ++++++ site/bundle/dirvish.vim | 5 ++++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/autoload/asclib/utils.vim b/autoload/asclib/utils.vim index 61d9b8ecf..257cd47ba 100644 --- a/autoload/asclib/utils.vim +++ b/autoload/asclib/utils.vim @@ -269,12 +269,15 @@ function! asclib#utils#open_url(url, ...) let browser = get(g:, 'asc_browser', '') let browser = (bang == '!')? '' : browser if has('win32') || has('win64') || has('win16') || has('win95') - let browser = (browser == '')? 'start' : browser - silent exec '!start /b cmd /c ' . browser . ' ' . url - " echo browser + if browser == '' + silent exec '!start /b cmd /c start ' . url . '' + else + silent exec '!start /b cmd /c call ' . browser . ' "' . a:url . '"' + endif + unsilent echo browser elseif has('mac') || has('macunix') || has('gui_macvim') let browser = (browser == '')? 'open' : browser - call system(browser . ' ' . url . ' &') + call system(browser . " " . url . " &") else let cmd = '/mnt/c/Windows/System32/cmd.exe' if $WSL_DISTRO_NAME != '' && executable(cmd) diff --git a/bundle.vim b/bundle.vim index 8d75b0096..a56ad32b6 100644 --- a/bundle.vim +++ b/bundle.vim @@ -453,6 +453,12 @@ if has_key(s:enabled, 'colors') Plug 'romainl/Apprentice' Plug 'arzg/vim-colors-xcode' Plug 'wuelnerdotexe/vim-enfocado' + let g:enfocado_style = "neon" +endif + +if has_key(s:enabled, 'games') + Plug 'iqxd/vim-mine-sweeping' + Plug 'vim-scripts/Mines' endif if has_key(s:enabled, 'which_key') diff --git a/site/bundle/dirvish.vim b/site/bundle/dirvish.vim index e7ad15e8c..673afd678 100644 --- a/site/bundle/dirvish.vim +++ b/site/bundle/dirvish.vim @@ -24,7 +24,10 @@ function! s:setup_dirvish() call search(name, 'wc') noremap ~ :Dirvish ~ noremap % :e % - " setlocal cursorline + setlocal cursorline + if exists('+cursorlineopt') + setlocal cursorlineopt=both + endif endfunc function! DirvishSetup()