How do I remove the right margin in Vim? It seems to be adding a carriage return and line feed (column 80?) whenever I save a file as .txt or .md. This doesn't happen if I save the file with no extension, but I want to be able to edit .txt files.
I've tried :set nowrap but this doesn't have the desired effect. I also commented out everything in my .gvimrc file in case I inadvertently did something there but no luck with that approach.
I was able to resolve this by commenting out the following line in the vimrc_example.vim file:
" autocmd FileType text setlocal textwidth=78
Here's the path to the file on my machine:
C:\Program Files (x86)\Vim\vim80\vimrc_example.vim
I'm using gVim.