環境構築の中で NeoVim のインストールと設定をしたログ。
環境
- OS: Ubuntu 16.04.3 LTS
- apt: 1.2.24
- NeoVim: 0.2.0
- Ruby: 2.3.1p112
- neovim gem: 0.6.1
- Python2: 2.7.12
- pip2: 8.1.1
- python2-neovim: 0.2.0
- Python3: 3.5.2
- pip3: 8.1.1
- python3-neovim: 0.2.0
NeoVim 本体をインストール
- # apt-get install -y software-properties-common python-software-properties
- # add-apt-repository ppa:neovim-ppa/stable
- Enter 押す必要があったけれど -y とか付けたら良かったのかな
- # apt-get update
- # apt-get install neovim
で neovim 本体は入ります。楽で良い。
dot_files を設定する
私は dot_files を公開しているので
- git clone https://github.com/atton/dot_files
- cd dot_files
- ./install.sh
で設定終了。備えあれば何とやら。
NeoVim の環境を整える
私が使ってるプラグインが python3 必須だったりするのでその辺も整備。
- # apt-get install -s ruby bundler
- # gem install neovim
- # apt-get install -y python3 python3-dev python3-pip python python-dev python-pip
- # pip3 install neovim
- # pip install neovim
で python2 + python3 + ruby の環境が整った。
:CheckHealth すると clipboard が無い以外は問題無い、とのことでOK。
自己診断機能便利ですよね。 brew doctor とか。
おまけ
ec2 の IP 覚えるとか domain 振るのとか面倒なので私の ~/.ssh/config はこんな感じ。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host ec2 | |
user ubuntu | |
hostname 1.2.3.4 | |
identityfile ~/.ssh/id_hoge |
というかOSごとに default user name 違うってなんでやねん。
0 件のコメント:
コメントを投稿