Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 have strange problem with my vim. In shell when I edit file my VIM triggers (probably) d key (running vim test.txt). When I press j he deletes first 2 lines. Everything works ok when i run without my .vimrc file (so I think that is my fault) or when I run gvim.

share|improve this question
    
Try :verbose imap j to see where j could have been remapped. Also I've read recently that mappings using <Esc> could cause weird problems. What is your $TERM? – romainl Jun 13 '12 at 13:01
    
romainl write this as answer i'll accept it. I've in my vimrc ` nnoremap <esc> :noh<CR><esc>` after deleting this line everything is ok, thanks alot. – Jacek Wysocki Jun 13 '12 at 13:52
    
Ok, there you go. Glad it worked. – romainl Jun 13 '12 at 14:05
up vote 2 down vote accepted

Try :verbose imap j to see where j could have been remapped.

Also I've read recently that mappings using <Esc> could cause weird problems.

By the way, what is your $TERM?

share|improve this answer

You must log in to answer this question.

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