1

long line

my .vimrc setting for wrapping line:

set nowrap " Don't auto wrap on load
set fo-=t " Don't wrap text when type
"set colorcolumn= 80
janicebaratheon
  • 111
  • 1
  • 2

1 Answers1

1

Use :set tw=80. Also make sure you are not in “paste” mode. (https://stackoverflow.com/a/1272371/4752883)

If you need visual guidance on where you are with respect to 80 characters you can use :set colorcolumn = 80 (https://vi.stackexchange.com/a/576/13848)

alpha_989
  • 901
  • 7
  • 15