Skip to content

Building vim from source with Anaconda

Louis Maddox edited this page Jul 7, 2019 · 28 revisions

Background

I successfully installed Black, the Python code autoformatter, and found that a requirement for it to work inside vim (which is a nice feature of vim-go) is that your installation of vim must be compiled with Python 3.6 or later.

  • The error message received was a failure to build an f-string (which was of course introduced in 3.6):
    Error detected while processing /home/louis/.vim/vimplug/black/plugin/black.vim: 
    line  135:
      File "<string>", line 24
        return venv_path / 'lib' / f'python{pyver[0]}.{pyver[1]}' / 'site-packages'
                                                                ^
    SyntaxError: invalid syntax
    

TO BE CONTINUED

Clone this wiki locally