3

The autocommand I would like to run is

au CmdlineModeEnter * wall

except that CmdlineModeEnter does not exist. I used to have a mapping defined like

nnoremap : :wall<CR>:

which worked fine except that the ":wall" flashing up was visible and distracting. Any ideas?

2 Answers 2

1
function! CmdlineEnter()
    silent! wall
    call feedkeys(":", 'n')
endfun

noremap <silent> : :call CmdlineEnter()<CR>
2
1

Does this help?

nnoremap <silent> : :wall<CR>:

See

:help :map-<silent>
1
  • Yes, it does make the ":wall" go away... unfortunately it also hides the leading : until I type the next char ;). Oh well I think I'm just too picky.
    – Owen
    Jun 5, 2011 at 6:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .