mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 08:30:06 +08:00
Make openbrowser not lazy loaded (#3479)
This commit is contained in:
parent
a9036c37c8
commit
7e2f9097c9
@ -41,9 +41,7 @@ function! SpaceVim#layers#core#plugins() abort
|
|||||||
endif
|
endif
|
||||||
call add(plugins, ['gruvbox-community/gruvbox', {'loadconf' : 1, 'merged' : 0}])
|
call add(plugins, ['gruvbox-community/gruvbox', {'loadconf' : 1, 'merged' : 0}])
|
||||||
call add(plugins, ['tyru/open-browser.vim', {
|
call add(plugins, ['tyru/open-browser.vim', {
|
||||||
\'on_cmd' : ['OpenBrowserSmartSearch', 'OpenBrowser',
|
\ 'merged' : 0,
|
||||||
\ 'OpenBrowserSearch'],
|
|
||||||
\'on_map' : '<Plug>(openbrowser-',
|
|
||||||
\ 'loadconf' : 1,
|
\ 'loadconf' : 1,
|
||||||
\}])
|
\}])
|
||||||
call add(plugins, ['mhinz/vim-grepper' , { 'on_cmd' : 'Grepper',
|
call add(plugins, ['mhinz/vim-grepper' , { 'on_cmd' : 'Grepper',
|
||||||
|
@ -1,31 +1,21 @@
|
|||||||
"for open-browser {{{
|
|
||||||
" This is my setting.
|
|
||||||
let g:netrw_nogx = get(g:, 'netrw_nogx', 1) " disable netrw's gx mapping.
|
let g:netrw_nogx = get(g:, 'netrw_nogx', 1) " disable netrw's gx mapping.
|
||||||
"nmap gx <Plug>(openbrowser-smart-search)
|
" Open URI under cursor.
|
||||||
"vmap gx <Plug>(openbrowser-smart-search)
|
nmap go <Plug>(openbrowser-open)
|
||||||
"" Open URI under cursor.
|
" Open selected URI.
|
||||||
nnoremap go <Plug>(openbrowser-open)
|
vmap go <Plug>(openbrowser-open)
|
||||||
"" Open selected URI.
|
|
||||||
vnoremap go <Plug>(openbrowser-open)
|
|
||||||
" Search word under cursor.
|
" Search word under cursor.
|
||||||
nnoremap gs <Plug>(openbrowser-search)
|
nmap gs <Plug>(openbrowser-search)
|
||||||
" Search selected word.
|
" Search selected word.
|
||||||
vnoremap gs <Plug>(openbrowser-search)
|
vmap gs <Plug>(openbrowser-search)
|
||||||
" If it looks like URI, Open URI under cursor.
|
" If it looks like URI, Open URI under cursor.
|
||||||
" Otherwise, Search word under cursor.
|
" Otherwise, Search word under cursor.
|
||||||
nnoremap gx <Plug>(openbrowser-smart-search)
|
nmap gx <Plug>(openbrowser-smart-search)
|
||||||
" If it looks like URI, Open selected URI.
|
" If it looks like URI, Open selected URI.
|
||||||
" Otherwise, Search selected word.
|
" Otherwise, Search selected word.
|
||||||
vnoremap gx <Plug>(openbrowser-smart-search)
|
vmap gx <Plug>(openbrowser-smart-search)
|
||||||
vnoremap gob :OpenBrowser http://www.baidu.com/s?wd=<C-R>=expand("<cword>")<cr><cr>
|
vnoremap gob :OpenBrowser http://www.baidu.com/s?wd=<C-R>=expand("<cword>")<cr><cr>
|
||||||
nnoremap gob :OpenBrowser http://www.baidu.com/s?wd=<C-R>=expand("<cword>")<cr><cr>
|
nnoremap gob :OpenBrowser http://www.baidu.com/s?wd=<C-R>=expand("<cword>")<cr><cr>
|
||||||
vnoremap gog :OpenBrowser http://www.google.com/?#newwindow=1&q=<C-R>=expand("<cword>")<cr><cr>
|
vnoremap gog :OpenBrowser http://www.google.com/?#newwindow=1&q=<C-R>=expand("<cword>")<cr><cr>
|
||||||
nnoremap gog :OpenBrowser http://www.google.com/?#newwindow=1&q=<C-R>=expand("<cword>")<cr><cr>
|
nnoremap gog :OpenBrowser http://www.google.com/?#newwindow=1&q=<C-R>=expand("<cword>")<cr><cr>
|
||||||
vnoremap goi :OpenBrowserSmartSearch http://www.iciba.com/<C-R>=expand("<cword>")<cr><cr>
|
vnoremap goi :OpenBrowserSmartSearch http://www.iciba.com/<C-R>=expand("<cword>")<cr><cr>
|
||||||
nnoremap goi :OpenBrowserSmartSearch http://www.iciba.com/<C-R>=expand("<cword>")<cr><cr>
|
nnoremap goi :OpenBrowserSmartSearch http://www.iciba.com/<C-R>=expand("<cword>")<cr><cr>
|
||||||
" In command-line
|
|
||||||
":OpenBrowser http://google.com/
|
|
||||||
":OpenBrowserSearch ggrks
|
|
||||||
":OpenBrowserSmartSearch http://google.com/
|
|
||||||
":OpenBrowserSmartSearch ggrks
|
|
||||||
"}}}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user