Dominique Pelle wrote:

> Using Vim-7.2.417 (huge) on Linux, ":help :argedit" says...
> 
> --- 8< --- cut here --- 8< --- cut here --- 8< ---
> :[count]arge[dit][!] [++opt] [+cmd] {name}              *:arge* *:argedit*
>                         Add {name} to the argument list and edit it.
>                         When {name} already exists in the argument list, this
>                         entry is edited.
>                         This is like using |:argadd| and then |:edit|.
>                         Note that only one file name is allowed, and spaces
>                         inside the file name are allowed, like with |:edit|.
>                         [count] is used like with |:argadd|.
>                         [!] is required if the current file cannot be
>                         |abandon|ed.
>                         Also see |++opt| and |+cmd|.
>                         {not in Vi}
> --- 8< --- cut here --- 8< --- cut here --- 8< ---
> 
> So I would expect to be able to do...
> 
>   :argedit ++enc=utf-8 foo.txt
> 
> However, it fails with error:
> 
> E492: Not an editor command: +enc=utf-8
> 
> |++opt| does not seem supported in  :argedit  unlike what the
> help file claims.  The other command":args ++enc=utf-8 foo.txt"
> does work.
> 
> I assume this is a bug in ":argedit" or is the doc incorrect?

I think adding ARGOPT to the flags for :argedit will help.
I'll try it out.

-- 
hundred-and-one symptoms of being an internet addict:
31. You code your homework in HTML and give your instructor the URL.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
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

Reply via email to