Tuesday, December 4, 2012

Re: scratch buffer opening with a " in the command line

On 21:05 Mon 03 Dec , Chris Lott wrote:
> I am trying to modify this script:
> https://github.com/fncll/wordnet.vim/blob/master/plugin/wordnet.vim
>
> so that I can press `q` to quit.
>
> However, when the scratch buffer opens with the results, there is a
> double-quotation mark in the command line that I have to `ESC` out of
> before I can do anything. I have no idea what that " means or where it
> is coming from.
>
> So, where is it coming from and how can I stop it?
>
> c
> --
> Chris Lott <chris@chrislott.org>
>
> --
> 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

I don't know either. But you can just add:

nmap <buffer> q :quit<cr>

after the line with 'mapclear <buffer>'. Then you can press q to quit
the wordnet buffer.

Maybe <c-u> could help (:help c^u).

Cheers,
Marcin

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