1

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.

3
  • 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, 2012 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. Jun 13, 2012 at 13:52
  • Ok, there you go. Glad it worked.
    – romainl
    Jun 13, 2012 at 14:05

1 Answer 1

2

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?

You must log in to answer this question.

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