Questions tagged [textwidth]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

How to make gq tidy up a line that starts with an nroff paragraph macro?

To see the issue: :set textwidth=20 :set formatoptions=tq and buffer to: .IP Notice that this line starts with one of the nroff paragraph markers. Here is a second that that is also longer than 20 ...
1 vote
1 answer
34 views

Why `textwidth` gives me the same effect as `linebreak`?

Could anybody explain, why textwidth works gives me the same effect as linebreak? Example 1. If I type aaaaaaaaaaaaaaaaaaa several times, the last aaa... is wrapped to the next line. linebreak is off, ...
3 votes
1 answer
88 views

Reformatting comments with gq, using spaces in 'comments'

I'm using Prettier to automatically reformat JavaScript (well, TypeScript, but same deal in this situation) source-code. It enforces a comment-style like this, with leading spaces replaced with ·: ···/...
3 votes
1 answer
103 views

LaTeX: turn off text wrap and auto indent in maths environments

I use vim with vim-latex for editing latex files. I always have hard wrapping enabled using set tw=80. I also have the default vim-latex auto indent settings enabled. I wonder if there is a way to ...
  • 131
1 vote
0 answers
155 views

gvim vs. xterm: what's wrong with my guifont?

The 10x20 is the (alias for) font I use with xterm -- and I like it. Both for shell-commands and vi/vim. Yet, when I use the :set guifont=10x20, I get "w i d e l y" spaced characters for ...
0 votes
1 answer
122 views

Setting `colorcolumn` to the value of `textwidth` has no effect?

I want to mark the textwidthth column using colorcolumn and have used the following (since I have slightly different textwidths for different files) au FileType py set textwidth=80 (say line 98) au ...