Re: RFE: keep command window open
- On Feb 06, Benji Fisher wrote:
> [...] What I would have liked is a way to execute theI've encountered this in the past. Saving the column and
> current command line without closing the command-line
> 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.
restoring it with cursor() was good enough for me.
:nno <C-CR> :let col=col('.')<CR><CR>q::call cursor(line('.')-1,col)<CR>