On 05/12/08 17:55, Mr.SpOOn wrote:
> 2008/12/5 Tony Mechelynck<[EMAIL PROTECTED]>:
>>> On Dec 5, 2008, at 12:42 AM, Steve Laurie wrote:
>> $HOME/vimfiles/after/ftplugin/ or for Unix in
>> $HOME/.vim/after/ftplugin/. Create any not-yet-existing directory as you
>> go along.
>
> Is the "after" directory necessary? I'm on Linux and I have it, but
> it's empty. My "ftplugin" directory is under .vim:
>
> .vim/ftplugin

If you put these *.vim scripts in ~/.vim/ftplugin/ they can be 
overridden by those by the same name in $VIMRUNTIME/ftplugin/ (which you 
should NEVER modify, because any upgrade can silently remove your 
changes). If you put them in ~/.vim/after/ftplugin/ the opposite is true 
(your scripts override those distributed with Vim).

The 'vimruntime' directory trees are normally set up as follows; 
normally they don't exist except for those where you need to put something:

$HOME/vimfiles/
        (Windows) single-user full scripts
$HOME/.vim/
        (Unix) single-user full scripts
$VIM/vimfiles/
        (all) system-wide full scripts
$VIMRUNTIME/
        (DO NOT MODIFY)
        (all) scripts distributed with Vim
$VIM/vimfiles/after/
        (all) system-wide tweaks to any of the above
$HOME/.vim/after/
        (Unix) single-user tweaks to any of the above
$HOME/vimfiles/after/
        (Windows) single-user tweaks to any of the above

The structure of all these trees is the same; e.g., scripts sourced when 
the current file's 'filetype' has just been set are in the /ftplugin/ 
subdirectory of any of them.


Best regards,
Tony.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to