Using Spacevim on Debian 9

Recently I run into Spacevim which is a great vim distribution for vim. For me it felt first more like a ready-to-go IDE. But it's essentially a "layer" activated with the SPACE key above the normal vim functionality. When hitting the SPACE key further navigation is being displayed allowing you get around the included functionality fast.

I've got vim 8.0 (2016 Sep 12, compiled Sep 30 2017 18:21:38) installed.

After I've installed Spacevim I got an following error message which I wanted to get rid off:

Error message: [ SpaceVim ] [ Error ] Can not set language to en_US.utf8

martin at debian in ~ 12:06
> vim
[ SpaceVim ] [12:06:07] [ Error ] Can not set language to en_US.utf8
Betätigen Sie die EINGABETASTE oder geben Sie einen Befehl ein

I'm running Debian 9 with german locales:

> locale -a
C
C.UTF-8
de_DE.utf8
POSIX

Besides that vim didn't come with python3 support.

Fix: enable en_US.utf on your machine

SpaceVim uses English internally and for this it requires you to have en_US.utf8 available. For me, in order to do that, I had to edit my /etc/locale.gen (uncomment the line containing en_US.UTF-8 UTF-8) and then run sudo locale-gen in order to generate the locales. Running locale -a after that should show now en_US.utf8 besides de_DE.utf8.

Fix to enable +python3 feature

Instead to build vim from sources as recommended on different pages, I had to install the packages vim-gtk, vim-gtk3, vim-gnome. Simply run:

sudo apt-get install vim-gtk vim-gtk3 vim-gnome

 

But I'm admitting I'm not 100% sure if all three are really required. But the problem is gone.

Links:

 

%d Bloggern gefällt das: