Skip to content

Commit

Permalink
update dirvish cursorline
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed Dec 20, 2021
1 parent 00b73d7 commit 514e528
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
11 changes: 7 additions & 4 deletions autoload/asclib/utils.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions bundle.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
5 changes: 4 additions & 1 deletion site/bundle/dirvish.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ function! s:setup_dirvish()
call search(name, 'wc')
noremap <silent><buffer> ~ :Dirvish ~<cr>
noremap <buffer> % :e %
" setlocal cursorline
setlocal cursorline
if exists('+cursorlineopt')
setlocal cursorlineopt=both
endif
endfunc

function! DirvishSetup()
Expand Down

0 comments on commit 514e528

Please sign in to comment.