Hi, > I have a very long menu.vim file. > Bit by bit I added more menus en commands. > However, I have to scroll between the other code to find my code. > It would be nice to include all my own commands with the help of a > include file.
You could use autoload functions (e.g. mymenu#sub#Foo() which would be defined in the file autoload/mymenu/sub.vim, which is automatically sourced when the function is called). If you really want to use commands, define them in in a plugin file (e.g. plugin/mymenu_cmds.vim), which will be sourced on startup. Regards, Tom -- 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
