>
> > You'll need to tweak your command setup in your .vimrc.
> > See :help :command-bar.
>
> I took a read, but it wasn't clear what parts pertain to my problem.
> I suspect that the text coming after my two letter command is being
> interpretted as arguments.
Correct. You need to change your command to something like:
command -bar FN set nofoldenable | setl foldcolumn=0
Doing it this way, you can do:
:command1 | FN | command2 | command3
and it will work as expected.
Without it, you will need to:
:command1 | execute "FN" | command2 | command3
or avoid chaining commands together.
More details at :help :bar, where you can see that 'a user defined
command without the "-bar" argument" sees the '|' as part of their
arguments. Since your command accepts no arguments, you get a
"trailing characters" message.
--
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:
Post a Comment