You can do this:
function my#sw() | return &sw | endfunction
But you can't do this:
function my#sw = function('shiftwidth')
because autoload variables can't be lowercase.
This is annoying, especially if you're trying to conditionally define a
function that may or may not be present depending upon the version of vim.
--
You received this message from the "vim_dev" 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