GithubHelp home page GithubHelp logo

ref-sources.vim's Introduction

ref-sources.vim

vim-ref 用の追加ソース・パッケージ。

vim-ref 付属の ref-alc などとは違い、 テキストベースなブラウザを使わず、curl を使用します。

必要環境

以下は、お好みで

収録ソース

設定

オプションの一部を紹介します。お好みに合わせて、~/.vimrc に追加してください。

その他のオプションを確認するには、各ソースのヘルプを参照 してください。

ローカルに保存されたドキュメントを参照する (jquery, javascript)

jQAPI から HTML Version をダウンロードして解凍、 JSRefのGitリポジトリをCloneし、 ディレクトリを、以下のように設定してください。

let g:ref_jquery_doc_path = 'path/to/jqapi-latest'
let g:ref_javascript_doc_path = 'path/to/jsref/htdoc'

自動リサイズ機能を有効にする (kotobank, kotobankej)

結果に合わせて、開かれるウインドウの縦サイズを調節します。

let g:ref_kotobank_auto_resize = 1
let g:ref_kotobankej_auto_resize = 1

もしくは、共通オプションを利用して以下の方法 でも設定できます。

let g:ref_auto_resize = 1

各言語版のウィキペディアで検索する

g:ref_wikipedia_lang に使用したい言語を設定します。

let g:ref_wikipedia_lang = 'en'

以下のようにすると、wikipedia に加え、英語版で検索する為の wikipedia_en が登録されます。

let g:ref_wikipedia_lang = ['ja', 'en']

もしくは、辞書型で設定する事で自由にソース名を付けられます。

let g:ref_wikipedia_lang = {'wikij': 'ja', 'wikie': 'en'}

キャッシュを有効にする

let g:ref_cpan_use_cache = 1
let g:ref_jquery_use_cache = 1
let g:ref_javascript_use_cache = 1
let g:ref_kotobank_use_cache = 1
let g:ref_kotobankej_use_cache = 1

もしくは、共通オプションを利用して以下のように書きます。

let g:ref_use_cache = 1

TODO

  • [cpan] サンプルコードの構文強調がおかしくなる問題の修正
  • [kotobankej] 大量の外字画像をすべて変換できるようにする
  • [wikipedia] キャッシュ機能を追加
  • 共通の関数をモジュール化
  • 収録ソースをもっと増やす

ref-sources.vim's People

Contributors

mojako avatar shiwano avatar

Stargazers

 avatar KazuakiM avatar  avatar  avatar nobusha avatar KYO avatar  avatar  avatar  avatar HIRAKI Satoru avatar thinca avatar

Watchers

James Cloos avatar  avatar

Forkers

shiwano

ref-sources.vim's Issues

ソース毎にレポジトリを分割する

ウェブにアクセスする関数を共有する為に、複数のソースをまとめて管理していたが、
今後、vital.web.httpを利用する方向で書き直す予定なので、もはや一つのレポジトリで管理する必要がなくなりそう。
スペースアルクの件も含めて(こっちには何の連絡もなかったが)、なんか言われたら即削除できるように
ソース毎にレポジトリを新しく作るべきか。このまま一つのレポジトリでいくべきか。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.