Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was reading vimtutor and in lesson 2.1 there was this note about typing commands like dw:

NOTE: The letter  d  will appear on the last line of the screen as you type
    it.  Vim is waiting for you to type  w .  If you see another character
    than  d  you typed something wrong; press  <ESC>  and start over.

but I can't see the commands that I am typing in command line neither in vim or gvim. How can I fix that?

share|improve this question
3  
Related: How to know commands I've been typing? on StackOverflow. – joeytwiddle Jan 31 at 10:35

This behaviour is controlled by the showcmd option.

Try:

:set showcmd

and see if that brings it back.

share|improve this answer
1  
Thanks for your answer. But I had this in my vimrc. So I tried other things in vimrc and by disabling wildmenu it was fixed. Then I enabled wildmenu again and nothing changed. Now I don't know what was wrong! – Hamon Jan 31 at 20:58
3  
When you edit your vimrc you can execute it in your running vim, using the command :source /path/to/vimrc. But this is not as clean as starting a fresh instance of Vim (because it won't reset any default settings you might have changed on the command line). So I find the cleanest way to test is to have two copies of Vim running, one where I edit my vimrc and another which I restart to test the results. – joeytwiddle Feb 1 at 6:18

Add this line into you .vimrc , either source it or restart vim.

set showcmd

And yes If you are experimenting with your vimrc and tired of sourcing it after every change, add this line.

autocmd BufWritePost .vimrc source %
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.