Loading ...
Sorry, an error occurred while loading the content.

Re: RFE: keep command window open

Expand Messages
  • Antony Scriven
    ... I ve encountered this in the past. Saving the column and restoring it with cursor() was good enough for me. ... Antony
    Message 1 of 2 , Feb 7, 2006
    • 0 Attachment
      On Feb 06, Benji Fisher wrote:

      > [...] What I would have liked is a way to execute the
      > current command line without closing the command-line
      > window.
      >
      > I experimented with
      >
      > autocmd CmdwinEnter : nnoremap <C-CR> <CR>q:
      >
      > so that I could execute the command and re-open the
      > window with <C-CR>. With this, I still had to go back to
      > where I was, which was a little annoying.

      I've encountered this in the past. Saving the column and
      restoring it with cursor() was good enough for me.

      :nno <C-CR> :let col=col('.')<CR><CR>q::call cursor(line('.')-1,col)<CR>

      Antony
    Your message has been successfully submitted and would be delivered to recipients shortly.