Friday, February 25, 2011

Re: bp and CTRL-^

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

Ben.

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