Friday, August 19, 2011

Re: nested "command" commands, some yield "Trailing character" error

On Aug 19, 12:22 pm, Paul <paul.domas...@gmail.com> wrote:
> I've got the following command in my .vimrc:
>
> command FN set nofoldenable | setl foldcolumn=0
>
> The following command issued in normal mode is fine:
>
> :source c:/Program\ Files/Vim/vim73/ftplugin/qf.vim | copen | FN
>
> The following command yields "E488: Trailing characters":
>
> :source c:/Program\ Files/Vim/vim73/ftplugin/qf.vim | copen | FN |
> setl number
>
> Is there a simple tweak I can apply to have "setl number" issued after
> FN?  Eventually, I'm going to stuff the entire (debugged) line into
> yet another two-letter command.

You'll need to tweak your command setup in your .vimrc.
See :help :command-bar.

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

No comments: