ubuntu-17.10 の vim でcolorschmeを設定する方法です。
デフォルトでインストールされているVimでcolorschemeを設定すると、
下記のエラーが発生します。
-----------------------------------------------------------------------------
Error detected while processing /home/****/.vimrc:
line 1:
E319: Sorry, the command is not available in this version: syntax on
Press ENTER or type command to continue
-----------------------------------------------------------------------------
下記コマンドで、デフォルトで入っているvimを削除し、
完全版をインストールすると、colorschemeを変更できるようになります。
$ sudo apt-get --purge remove vim-common vim-tiny
$ sudo apt-get install vim
以下molokai を設定する場合の例です。
$ mkdir -p ~/.vim/colors
$ cd ~/.vim/colors
$ wget https://raw.githubusercontent.com/tomasr/molokai/master/colors/molokai.vim
$ ~/.vimrc
-----------------------------------------------------------------------------
colorscheme molokai
syntax on
-----------------------------------------------------------------------------