exec 'exec '.fnameescape(path)
However it has some limitations
Maybe you prefer this:
exec 'source '.fnameescape(path)
> 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.
Of course using multiple files is one way to solve this. (gf is pretty
fast ..)
However I'd recommend you rewrtiing your long file htis way:
{{{1
section 1
many lines
{{{1
section 2
more many lines
vim: fdm=marker
THen you can find the section fast.
Or try adding a word you can rememeber and jump to it by / search which
is fastest IMHO.
> It would be nice to include all my own commands with the help of a
> include file.
If you add too many small files startup time under IO load may suffer.
> This diminish the possibility of errors.
> It gives as well an easy possibility to check if VIM without my
> commands works or not.
You should be using this instead:
vim -u NONE -U NONE -N
or emebed everything into a an if
if ! $NO_MENU
.. code
endif
Then you can start vim this way:
NO_MENU=1 vim
Marc Weber
--
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