How do I format long lines in a file so that each line contains less
than ‘n’ characters? You can set the ‘textwidth’ option to control the number of characters that can be present in a line. For example, to set the maximum width of a line to 70 characters, you can use the following command:
set textwidth=70
Now to break the long lines in a file to the length defined by the ‘textwidth’ option, you can use
:g/./normal gqq
Comments (1)
Pepsh Pepshinsky
Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE