Friday, February 25, 2011

Re: bp and CTRL-^

On Friday 25 February 2011 15:42:26 you wrote:

> > command! BD exe "normal<c-^><c-^> | bd #"

> You only want to type control-^ once, don't you?

> Also, to use <> notation in a string, you need a \.

> Also, it's only the normal command you want to quote--quoting
> the stuff after it enforces the problem that the | will be
> part of the normal command.

> And you probably need a space at the end of normal to delimit
> it from its argument.

> So try

> command! BD exe "normal \<c-^>" | bd #

that's what i was shooting for -- thanx ben -- it works
perfectly now

sc

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