Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

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.