I'm trying to configure vim
so that the text breaks automatically at 80 characters. I know the way to do this is with
set textwidth=80
However, the lines don't automatically break when I typed past 80 characters. It waits until I hit Enter
, then it applies the 80 character rule to what I've typed, and places my cursor on the line below all of the newly formatted text. So, I hit Enter
, it reformats, then I have to go one line up to continue typing from where I was. I would like it so that the line breaks happen automatically while I'm typing. This was the case before I switched to arch-linux, but I lost my .vimrc
and I can't tell if it's an issue with my new .vimrc
or something else.
Here's my current .vimrc. http://pastebin.com/A4H9E0SA
Edit: Okay, so I decided to go through and replace chunks of my .vimrc
until I found which part of the code caused this issue. It turns out that it's neocomplete that's causing this issue. I tried removing a bunch of the neocomplete settings (see the bottom of my .vimrc
, starting at line 112) to see if any of those lines were causing the issue. It appears merely having neocomplete on is the cause of this issue.
Can anyone replicate this issue with neocomplete and/or have any ideas as to how to fix this without completely removing this plugin?
noremap pp p
[v]gq$
to yourvimrc
then pressingpp
should do what you want.