> a) in the file .vim/ftplugin/FILETYPE.vim,
> b) defining the function
>     fun! SetAltMaps()
>     ...
>    endfun
> 
> That way each filetype has its own definition of the SetAltMaps() 
> function.  More readable, too.

The problem with this approach is that because functions share a global
namespace as soon as you edit more than one file at once of different
types, the functions will clobber each other.

Ben.




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

Reply via email to