neovim 入門2 CheckHealth

neovimには自己判断ツールが入ってるので、それを実行する。
https://github.com/neovim/neovim/wiki/FAQ#my-ctrl-h-mapping-doesnt-work

実行方法

:CheckHealt 

エラーと修正方法

## terminfo
  - ERROR: key_backspace (kbs) entry is ^H (ASCII DELETE): key_backspace=^H,

    - SUGGESTIONS:
      - Set key_backspace to \177 (ASCII BACKSPACE). Run these commands:
          infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
          tic $TERM.ti
      - See https://github.com/neovim/neovim/wiki/FAQ

0.2では解決済みらしいが、今回いれたのが0.1.7なのでまだ問題がある。
SUGGESTIONSに書かれている通りに実行すれば解決。

## tmux
  - SUCCESS: escape-time: 1ms
  - INFO: $TERM: screen
  - ERROR: $TERM should be "screen-256color" or "tmux-256color" when running tmux.
    - SUGGESTIONS:
      - Set default-terminal in ~/.tmux.conf:
          set-option -g default-terminal "screen-256color"

      - See https://github.com/neovim/neovim/wiki/FAQ

これは結構はまった。
tmux起動時の$TERMの設定値がscreen-256colortmux-256colorじゃないと設定通りに色が付かない。
SUGGESTIONSに書かれている書き方はtmuxのバージョンが古かったので、以下を.tmux.confに追加した。

#.tmux.conf
set -g default-terminal "screen-256color"

これで設定自体は問題ないが、tmuxのセッションが一つでも残っていると上記の設定が反映されないようで、
$TERMに設定した値が反映されないと思い15分ほど悩んでた。

##Python 2 provider
  - INFO: `g:python_host_prog` is not set.  Searching for python2 in the environment.
  - SUCCESS: pyenv found: "/usr/local/Cellar/pyenv/1.0.10/libexec/pyenv"
  - WARNING: pyenv is not set up optimally.
    - SUGGESTIONS:
      - Suggestion: Create a virtualenv specifically for Neovim using pyenv and use "g:python_host_prog".  This will avoid the need to install Neovim's Python client in each version/virtualenv.
  - INFO: Executable: /usr/local/bin/python2
  - INFO: Python2 version: 2.7.13
  - INFO: python2-neovim version: 0.1.13
  - SUCCESS: Latest python2-neovim is installed: 0.1.13

g:python_host_progの設定を.init.vimに追加すれば問題なし。

## Python 3 provider
  - WARNING: No Python interpreter was found with the neovim module.  Using the first available for diagnostics.
  - WARNING: provider/pythonx: Could not load Python 3:
    /Users/himalia/.pyenv/shims/python3 does not have the neovim module installed. See |provider-python|.
    /Users/himalia/.pyenv/shims/python3.5 does not exist: pyenv: python3.5: command not found
    
    The `python3.5' command exists in these Python versions:
    anaconda3-4.2.0
    
    
    python3.4 not found in search path or not executable.
    python3.3 not found in search path or not executable.
    /Users/himalia/.pyenv/shims/python is Python 2.7 and cannot provide Python 3.
  - INFO: `g:python3_host_prog` is not set.  Searching for python3 in the environment.
  - SUCCESS: pyenv found: "/usr/local/Cellar/pyenv/1.0.10/libexec/pyenv"
  - WARNING: pyenv is not set up optimally.
    - SUGGESTIONS:
      - Suggestion: Create a virtualenv specifically for Neovim using pyenv and use "g:python3_host_prog".  This will avoid the need to install Neovim's Python client in each version/virtualenv.
  - INFO: Executable: /usr/local/bin/python3
  - ERROR: Command error (8) /usr/local/bin/python3 -c import neovim; print(neovim.__file__): Traceback (most recent call last):  File "<string>", line 1, in <module>ModuleNotFoundError: No module named 'neovim'
  - INFO: Python3 version: 3.6.1
  - INFO: python3-neovim version: unable to find nvim executable
  - ERROR: Neovim Python client is not installed.
    - SUGGESTIONS:
      - Error found was: unable to find nvim executable
      - Use the command `$ pip3 install neovim`
  - WARNING: Latest python3-neovim is NOT installed: 0.1.13

こちらもg:python_host_progの設定を.init.vimに追加。
加えてpip3 install neovimも実行。

## Ruby provider
  - ERROR: Missing Neovim RubyGem
    - SUGGESTIONS:
      - Install or upgrade the neovim RubyGem using `gem install neovim`.
  - INFO: Ruby Version: ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
  - INFO: Host Executable: not found
  - INFO: Host Version: not found

SUGGESTIONSに書かれている通りにsudo gem install neovimを実行

以上の変更でERRORとWARNIGがでなくなったので、次はプラグイン入れていきます