> I have vim 7.0 installed on fedora. Each time after I starts the vim > and press the movement key, j,k l, h, vim will automatically change to > insert mode and add one empty line in it. I have to press ESC and u to > undo it. How can I change this back to normal vim, so the j,k,l,h key > is movement keys? > > Another annoying problem is with the arrow key, each time when I press > the arrow key, it will change to insert mode and insert an empty line. > How could I change this back to normal movement key?
A couple things to try: 1) try starting vim with vim -u NONE to prevent any plugins from loading. If things suddenly start working, then you've got an errant plugin or config setting/option that's causing trouble. Use of :verbose and :scriptnames can help to track down issues if this is the case. 2) from within you shell, issue bash$ echo $TERM and then from within vim issue :echo $TERM and see if they match. These *should* be the same. Either you're resetting $TERM within vim, or your shell isn't setting it properly for the terminal you're in. Information for the results of these two tests should help move in the right direction. It might also help to know what terminal app you're using (xterm, rxvt, console, etc) and what shell you're using (bash, zsh, csh, etc). -tim