Vim - Weird Behaviour

vim

Solution

There are quite a few things it could be given how customisable Vim is. However I think it might be your setting of 'textwidth'.

From Vim Help:

'textwidth' can be set to the maximum width for a line. When a line becomes too long when appending characters a line break is automatically inserted.

So check what 'textwidth' is set to and either increase it, or set it to 0 to disable this feature.

If this doesn't work, then try what everyone else said of just commenting out all your settings, checking this fixes the issue. Then slowly enabling settings again. Maybe use a binary search :)

Problem

I just recently deleted my .vimrc, and since I've added a few things back in and added some plugins I get this weird behaviour. - I click 'i' to place me in insert mode. - I type a character (any character) - Suddenly I get a newline break right where I started typing. Extremely annoying! :) Any ideas on what this might be?

Original source