Hi Yongwei!
On Di, 23 Dez 2014, Yongwei Wu wrote:
> I have found that a line like this does not work (one line):
>
> au BufEnter some_path/* set nocscopeverbose|cscope add
> some_path/cscope.out|set cscopeverbose
>
> More tests show that "cscope add" does like to have "|" on the same
> line. I doubt it takes the rest of the line as the file name.
>
> Currently I have to write the action as a function to make it work.
>
> Is it a bug of "cscope add"?
No. For some commands, it is not possible to use the '|' to separate
several Vim commands, because these commands handle the '|' themselves.
You can wrap the ':cs' command into an exe command to make that work.
This is documented at :h :bar
Best,
Christian
--
Wenn sich die Sprüche widersprechen, ist's eine Tugend und kein
Verbrechen. Du lernst nur wieder von Blatt zu Blatt, daß jedes Ding
zwei Seiten hat.
-- Paul von Heyse
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment