2016-02-05 6:00 GMT+03:00 Erik Falor <ewfalor@gmail.com>:
> On Thu, Feb 04, 2016 at 03:54:40PM -0800, Hashjie wrote:
>
>> Whenever I run vim with vim -u NONE
>
> That's your problem right there. -u skips many of Vim's regular
> initializations, including loading [autoloaded] plugins. That is why
> Vim does not recognize the function pathogen#infect().
This is not correct. `-u NONE` tells Vim to read no initialization
files, as well as plugins. This will not disable autoloading, so one
*still* may do `:execute pathogen#infect()` after starting Vim or in
e.g. --cmd (it *will* work on that early stage because &runtimepath
would already be initialized to contain ~/.vim and this is *all* one
needs to make autoloading work). But -u NONE will require to do this
explicitly (done by OP by using :so) and will also set &loadplugins to
zero which makes calling pathogen rather pointless.
OP should have different problem, -u NONE is not disabling autoloading
functionality.
I would ask him to check pathogen.vim contents and whether it can be
sourced with explicit `:source ~/.vim/autoload/pathogen.vim`.
>
> You can see which scripts Vim has loaded with :scriptnames
>
> These help file entries will explain things further:
>
> :help -u
> :help --noplugins
>
> --
> Erik Falor
> Registered Linux User #445632 http://unnovative.net
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thursday, February 4, 2016
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment