> What's the correct way to tell Vim to load a syntax/indent/ftplugin
> based on a file extension?
A good place to start is
:help ftdetect
Create a file in
~/.vim/ftdetect
that contains the necessary autocommands to identify the type of file
and set (for example) filetype appropriately.
For example, in a file called ~/.vim/ftdetect/ps1.vim, you could put
au BufRead,BufNewFile *.ps1 set filetype=powershell
(or whatever the appropriate PoSH filetype name is).
You might also be interested in
:help after
--Ted
--
Ted Pavlic <[email protected]>
Please visit my ALS association page:
http://web.alsa.org/goto/tedpavlic
My family appreciates your support in the fight to defeat ALS.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---