1

I followed the documentation for installing Ale using Pathogen but when I open a Vim file and type :help ale-fix or :ALEFix I get E149: Sorry, no help for ale-fix and E492: Not an editor command: ALEFix. Does anyone know what the reason might be?

I've used Pathogen before to install NERDTree the same way and am using that plugin fine.

5
  • Have you tried cloning the Ale repository to the same directory as NERDTree? You may have just cloned it somewhere else by mistake. Sep 7, 2020 at 0:46
  • The Ale repository is in ~/.vim/bundle/ along with the NERDTree repository. I'm not sure if this is the issue, but the current Vim that I'm using is 7.4 (2013 Aug 10) but the installation guide does say that it's for Vim 8. I'm also not sure if this is relevant to my issue, but I've noticed in this GitHub Issue for Vundle that two .vimrc files may be a problem?
    – Sean
    Sep 7, 2020 at 0:50
  • Please share more details, such as relevant snippets in your bike that enable Pathogen, the exact commands you used, etc. You can also look at :set runtimepath? to see if the Ale directory is included in the list, and :scriptnames to look at all scripts getting loaded during startup...
    – filbranden
    Sep 7, 2020 at 0:51
  • 2
    Oh yeah Ale requires Vim 8... If you type :messages you'll see the error message
    – filbranden
    Sep 7, 2020 at 0:52
  • 2
    Ah I see I didn't know that that was an absolute requirement... I'll have to ask my administrator to update Vim then. Thanks!
    – Sean
    Sep 7, 2020 at 0:56

1 Answer 1

4

The ALE plug-in requires Vim 8 or NeoVim 0.2.0+.

If you open a file in the Vim command-line with Ale loaded (vim /path/to/file.py or similar), it will produce an error like the one below:

ALE requires NeoVim >= 0.2.0 or Vim 8 with +timers +job +channel

I suggest you install a more recent version of Vim or NeoVim to get Ale to work.

You might also want to consider using a more user-friendly and higher-level plug-in manager, such as vim-plug, which can install and update plug-ins for you and make it pretty obvious which ones are installed and available.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.