Skip to content

Instantly share code, notes, and snippets.

@violetyk
Created January 6, 2016 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save violetyk/e64db0df65c253c48bf0 to your computer and use it in GitHub Desktop.
Save violetyk/e64db0df65c253c48bf0 to your computer and use it in GitHub Desktop.
ref.vimででPHPのマニュアルをひいていたときの設定

vimrcへの設定

if neobundle#is_sourced('vim-ref') " {{{
  if has('win32') || has('win64')
    let g:ref_phpmanual_path = $VIM . '/vimfiles/manual/php_manual_ja/'
  else
    let g:ref_phpmanual_path = $HOME . '/.vim/manual/php_manual_ja/'
  endif

  " ftと辞書のマッピング
  " let g:ref_detect_filetype = {
        " \ 'htmlcake' : 'phpmanual'
        " \ }
endif "}}}

PHPマニュアルをダウンロードして配置する

mkdir -p ${HOME}/.vim/manual
curl -L -o ${HOME}/.vim/manual/php_manual_ja.tar.gz http://jp1.php.net/get/php_manual_ja.tar.gz/from/this/mirror
tar xf ${HOME}/.vim/manual/php_manual_ja.tar.gz
mv ${HOME}/.vim/manual/php-chunked-xhtml ${HOME}/.vim/manual/php_manual_ja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment