Some built-in vim functions support optional arguments. For example, we can write winnr() as well as winnr('$'). Can I define my own functions with optional arguments? I found no hints in vim's online help. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
- [vim script] How to define a function with optional argument... Clark J. Wang