On Sat, Mar 7, 2020 at 10:34 PM Jack corley <jdcorley@gmail.com> wrote:
>
> Hey, guys I recently started a position that requires me to use a windows workstation but I would like to have access to vim and the plugins I normally would use. I feel infinitely slower doing basic tasks without it. I managed to install the windows version but I am not fully understanding where the vimrc file belongs and how to get plug up and running with it so I can configure things and utilize plugins. Any tips or suggestions are appreciated. So far I have tried modifying the _vimrc in my x86 programs file and added the autoload directory like the Plug installation requires. But when I launch vim it doesn't seem to be recognizing my _vimrc changes or location maybe.
On Unix Vim looks for a startup file named .vimrc, on Windows for one
named _vimrc. In both cases it looks for it in your home directory —
and if $HOME (or, in Windows parlance, %HOME%) is not defined on
Windows, $HOMEDRIVE$HOMEPATH (i.e. %HOMEDRIVE%%HOMEPATH%) is a
fallback location. If the vimrc is not found there, Vim looks for it
on Unix as ~/.vim/vimrc or on Windows as ~/vimfiles/vimrc (i.e., in
the latter case, %HOME%\vimfiles\vimrc or
%HOMEDRIVE%%HOMEPATH%\vimfiles\vimrc). Note that a vimrc in .vim (for
Unix) or in vimfiles (for Windows) must NOT have a . or _ at the start
of its filename.
All this, and more (e.g. how to invoke Vim so as to disregard an
existing vimrc) is explained under ":help vimrc".
For the plugins, they are in the plugin/ subdirectory (for global
plugins) of one of the directories mentioned in the 'runtimepath'
option. These are normally the following:
$HOME/.vim/ (Unix) or $HOME/vimfiles/ (Windows) for user-specific full scripts
$VIM/vimfiles/ for system-wide scripts, usually put there by a system
administrator
$VIMRUNTIME/ _only_ for scripts distributed together with Vim. Any Vim
update may silently modify them.
$VIM/vimfiles/after/ for system-wide snippets overriding any of the above
$HOME/.vim/after/ (Unix) or $HOME/vimfiles/after/ (Windows) for
user-specific snippets overriding any of the above.
All these five directory trees have the same layout, and if a script
looked-for in one of them is absent, it is no error: the result is the
same as if the script had been present but empty. In the case of
global plugins, however, all of them are sourced in the order they are
found, unless you disable them all by means of a command-line switch
which can take several forms, see ":help --noplugin".
In addition, you may have "packages" which add additional directories
to the above five.
See
:help 'runtimepath'
:help packages
:help plugin (which is a whole chapter about the various kinds
of plugins)
HTH,
Tony.
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXugw1Ef%2ByP%3DNmFYnhaGSeff0U4xXiY5yAOZ%2Bzxgg_O%2BVg%40mail.gmail.com.
No comments:
Post a Comment