Skip to content

vim: compiling instructions

adampasz edited this page Dec 20, 2014 · 2 revisions

Overview

Once you've connected to the internet, Vim, in conjunction with git and npm, provides a fully-functional, JavaScript development environment directly on the board. This workflow may be appropriate for debugging a project in its final stages.

The following steps detail the process for building Vim in case it is not already installed.

Step 1 -- Install ncurses

You will need to install the ncurses dependency first (if it is not installed yet): http://petio.org/tools/ncurses.html

whereis ncurses

If this does not return a path to the ncurses.h file, you will need to do...

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.7.tar.gz
tar -xvzf ncurses-5.7.tar.gz
cd ncurses-5.7
./configure --prefix=/usr
make 
make install

Step 2 -- Install Vim

Vim is downloaded via Mercurial, which is not installed on the Galileo or Edison by default, but you can use this git mirror site to clone it. More details here: https://github.com/b4winckler/vim

git clone https://github.com/b4winckler/vim.git
cd vim
./configure --with-features=huge
make
make install

Reference

Some features may have additional dependencies, and may not work on the Galileo or Edison.

There are a ton of plugins that could be useful. Vundle is an excellent plugin manager that works just fine on the Galileo and Edison.