LoginSignup
4
3

More than 5 years have passed since last update.

Intel Edisonにvimをインストールする

Posted at

はじめに

EdisonにはBusyBox版のviが入ってますが、nodeのコードを編集するときは構文ハイライトや慣れた編集操作が使える普通のvimが欲しくなります。

非公式のレポジトリを利用するとopkgコマンドからvimパッケージをインストールすることができます。

手順

/etc/opkg/base-feeds.confにリポジトリを追加します。

/etc/opkg/base-feeds.conf
src/gz all http://repo.opkg.net/edison/repo/all
src/gz edison http://repo.opkg.net/edison/repo/edison
src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32

opkg updateを実行します。

# opkg update

注意: "opkg upgrade"はrootfsをまるっと書き換えるようなので実行しないこと。パッケージのアップグレードはパッケージごとに"opkg install "を実行する。

vimをインストールします。

# opkg install vim
Installing vim (7.4.481-r0) on root.
Downloading http://repo.opkg.net/edison/repo/core2-32/vim_7.4.481-r0_core2-32.ipk.
package vim suggests installing diffutils
Installing vim-help (7.4.481-r0) on root.
Downloading http://repo.opkg.net/edison/repo/core2-32/vim-help_7.4.481-r0_core2-32.ipk.
Installing vim-syntax (7.4.481-r0) on root.
Downloading http://repo.opkg.net/edison/repo/core2-32/vim-syntax_7.4.481-r0_core2-32.ipk.
Installing vim-common (7.4.481-r0) on root.
Downloading http://repo.opkg.net/edison/repo/core2-32/vim-common_7.4.481-r0_core2-32.ipk.
Installing vim-tutor (7.4.481-r0) on root.
Downloading http://repo.opkg.net/edison/repo/core2-32/vim-tutor_7.4.481-r0_core2-32.ipk.
Installing vim-vimrc (7.4.481-r0) on root.
Downloading http://repo.opkg.net/edison/repo/core2-32/vim-vimrc_7.4.481-r0_core2-32.ipk.
Configuring vim-syntax.
Configuring vim-common.
Configuring vim-vimrc.
Configuring vim-help.
Configuring vim-tutor.
Configuring vim.
update-alternatives: Linking //bin/vi to /usr/bin/vim

これでvimが使えるようになります。

opkg install gitでgitも入るので、vim-plugが使えるようになるかも。

参考

橋本商会 » Intel Edisonにopkgで色々インストールした

AlexT's Galileo & Edison pages

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3