VIM에서 URL을 열고 검색하는 도구 상자
다른 VIM 플러그인과 마찬가지로. Use pathogen, neobundle or vundle, or just unzip it inside your $HOME/.vim directory.
VIM-WWW를 통해 VIM에서 웹 브라우저를 시작하여 임의의 URL, 정의 된 즐겨 찾기 및 검색 엔진 결과를 열 수 있습니다.
The web browser to be used is detected automatically, but it can be manually set through g:www_launch_browser_command , optionally using {{URL}}} as placeholder for the actual URL. 예 : :
let g:www_launch_browser_command = "iceweasel {{URL}} &"
In the same way, an alternative CLI browser can be set through g:www_launch_cli_browser_command . 작업하려면 Vim-Dispatch 애드온을 설치해야합니다. 예를 들어 Neovim 및 Vim-Dispatch-Neovim이 사용되는 경우 Tmux 창에서 또는 가상 터미널에서 웹을 열는 것이 목적입니다.
:Wopen opens any given URL. 예 : :
:Wopen http://vim.org
But typing and remembering full URLs is annoying, so custom favorites can be defined in g:www_urls dictionary.
So, having in vimrc ,
let g:www_urls = {
'vim' : 'http://www.vim.org',
}
다음 명령은 이전의 명령과 동일합니다.
:Wopen vim
Also, in normal mode, <leader>wo launches the browser using WORD under cursor as URL. 시각적 모드에서는 동일하지만 현재 텍스트 선택을 URL과 동일하게 수행합니다.
:Wcopen command and <leader>wco mappings do the same but using the CLI browser.
:Wsearch queries a search engine and opens the corresponding results page:
예 : :
:Wsearch google how to learn vim
Previous command opens the resulting page of searching how to learn vim in google.
다음 검색 엔진을 기본적으로 제공합니다.
More search engines can be added through g:www_engines dictionary. 주어진 URL의 끝에 쿼리가 추가됩니다. 예 : :
let g:www_engines = {
'youtube' : 'https://www.youtube.com/results?search_query=',
}
In normal mode, <leader>ws searches WORD under cursor, while the same mapping in visual mode searches current visual selection. 두 경우 모두 사용자에게 사용해야 할 검색 엔진을 선택하라는 메시지가 표시됩니다. If none is given, duckduckgo is used, but this behaviour can be changed setting g:www_default_search_engine variable. 예 : :
let g:www_default_search_engine = 'google'
:Wcsearch command and <leader>wcs mappings do the same but using the CLI browser.
Convenient shortcuts for commonly used search engines can be defined in g:www_shortcut_engines dictionary. Having in vimrc :
let g:www_engines = {
'ruby' : 'http://ruby-doc.com/search.html?q=',
}
let g:www_shortcut_engines = {
'ruby': ['Docruby', '<leader>dr', 'Doccliruby', '<leader>dcr']
}
automatically adds :Docruby / :Doccliruby commands, and <leader>dr / <leader>dcr mappings that work like :Wsearch / :Wcsearch and <leader>ws / <leader>wcs but using ruby straight away as search engine.
사용자 정의 명령은 대문자로 시작해야합니다.
이것은 API 문서를 빠르게 상담하는 방법으로 사용하는 것이 매우 편리합니다.
Arbitrary URLs and favorites can be grouped together under a name in g:www_sessions dictionary and opened at once using :Wsession command.
Having in vimrc :
let g:www_urls = {
'vim' : 'http://www.vim.org',
}
let g:www_sessions = {
'dev' : ['vim', 'http://stackoverflow.com'],
}
달리기:
:Wsession vim
would open http://www.vim.org and http://stackoverflow.com at once.
:Wcsession command does the same but using the CLI browser.
Type :help vim-www for a complete reference and information about configuration.
https://github.com/waiting-for-dev/vim www/issues에서 버그를 엽니 다
git checkout -b my-new-feature )git commit -am 'Add some feature' )git push origin my-new-feature )VIM WWW는 시맨틱 버전 설정 시스템 2.0을 따릅니다. 현재 버전은 1.1.0입니다.
MIT 라이센스 http://www.opensource.org/licenses/mit-license.php
저작권 (C) 2014 Marc Busqué Pérez
이에 따라이 소프트웨어 및 관련 문서 파일 ( "소프트웨어")의 사본을 얻는 사람에게는 허가가 부여됩니다. 소프트웨어의 사용, 복사, 수정, 합병, 배포, 배포, 숭고 및/또는 소프트웨어의 사본을 판매 할 권한을 포함하여 제한없이 소프트웨어를 처리 할 수 있도록 소프트웨어를 제공 할 권한이 없습니다.
위의 저작권 통지 및이 권한 통지는 소프트웨어의 모든 사본 또는 실질적인 부분에 포함되어야합니다.
이 소프트웨어는 상업성, 특정 목적에 대한 적합성 및 비 침해에 대한 보증을 포함하여 명시 적 또는 묵시적 보증없이 "그대로"제공됩니다. 어떠한 경우에도 저자 또는 저작권 보유자는 계약, 불법 행위 또는 기타, 소프트웨어 또는 소프트웨어의 사용 또는 기타 거래에서 발생하는 계약, 불법 행위 또는 기타의 행동에 관계없이 청구, 손해 또는 기타 책임에 대해 책임을지지 않습니다.