vehomzzz
vehomzzz

Reputation: 44568

the weirdest VI problem EVER

Ok, so I am trying to type the following in .cshrc file: alias ls 'ls --color=auto'. I type one character at a tiem.

However, when I reach --color= i type a and cursor goes to the next line.

I checked the .vimrc file and didn't fine anything out of whack. I am using vim7.2

EDIT

I noticed it is only happens in the .cshrc file, and cursor starts blinking with ' character.

I had "set mouse=a" set in .vimrc file

What is the problem?

Upvotes: 1

Views: 242

Answers (2)

Brian Carper
Brian Carper

Reputation: 72926

Do you have textwidth set? If so it'll break your lines once they reach a certain length. Inspect the value via

:set textwidth?

Set it to 0 to turn off hard line-wrapping. Otherwise, do you have a mapped to something weird in insert mode? Check

:imap a

to see if you do.

Upvotes: 3

Thomas Geritzma
Thomas Geritzma

Reputation: 6667

I cannot test it now, but probably something wrong with the appropriate indent file for that filetype. Does it happen if you edit some other configuration file ?

Upvotes: 1

Related Questions