Questions tagged [wrapping]

Vim is able to wrap lines when they are longer than the width of the window or than a user-defined width. Questions about how to customize this behavior.

Filter by
Sorted by
Tagged with
4
votes
2answers
148 views

Apply formating with a script, or have ftplugin format particular text based on syntax

When I am writting a Latex document I generally like to keep an 80 column line width to keep things easy to read. However I don't like to use text wrapping because it can get in the way of typing ...
2
votes
0answers
73 views

Dividing long paragraphs across pages

By default, vim will not split long paragraphs (or any paragraphs (= long lines)) across pages. Instead of showing the first part of a paragraph that does not fit into the page entirely, it leaves out ...
0
votes
2answers
77 views

How can I soft wrap the gundo preview?

As the title. Basically I want to apply set linebreak to the gundo window.
2
votes
4answers
681 views

Is there a vimscript function to wrap text

Is there a vimscript function that wraps text in a similar manner like gqgq does? For example, if I have the following string variable: let txt = 'One foo, two bars and three bazes went up the hill' ...
4
votes
2answers
499 views

Relative Numbers sidepanel with wrapped lines

I love the relative numbers side-column in vim but when I have wrapped lines it becomes inaccurate (or less usable since I can't use that number directly in a j/k command). I have nnoremap j gj in my ...
8
votes
1answer
104 views

change meaning of “paragraph” for TeX input?

I'm writing LaTeX code which has a lot of sections like this \begin{definition} blah blah blah ... ... \end{definition} In normal text, I'm very fond of gq] to rewrap everything nicely. Inside a ...
3
votes
0answers
206 views

Why does the vim-jedi popup have weird line wrapping?

When I'm nearing the right-hand side of my vim window, the vim-jedi's pop has some weird line-wrapping behavior: Is this normal behavior? How can I get the popup window to be shifted leftwards and ...
9
votes
1answer
551 views

Auto-format: wrapping later in line when inserting text

After reading help textwith and help fo-table, I expected that when I set set textwidth=20 " for demonstration set formatoptions=tcq then inserting text would always eventually cause a line to wrap,...
1
vote
2answers
281 views

Force (visual-only) wrap at specific column regardless window size in gVim

This is more gVim (Linux) related since Vim doesn't have a "window" of its own. I'm trying to wrap a text at (say) 80th character, visual wrap only, no changes in file, hence no textwidth or ...
2
votes
1answer
73 views

Is there any way to prevent a line from wrapping around while in visual mode?

If I am using visual block mode to append to a block of text and number of characters exceeds 80, then the line snaps and text is not appended to rest of the block. I want to find a way such that line ...
4
votes
1answer
1k views

How to automatically set wrapping for quickfix window?

I'm using Dispatch.vim, and often when there's a test error, some lines in the quickfix list are really long. I don't use soft wrapping for my code, so quickfix also isn't wrapped. Is it possible to ...
4
votes
3answers
5k views

How to stop gVim wrapping text at column 80

I have a README.txt file as follows: This document is a list of a) Known issues in the services or test environment, i.e. things expected to fail b) Things to be improved in the test suite c) ...
13
votes
1answer
626 views

Can I add an end-of-line string when Vim wraps a line due to textwidth? [duplicate]

When I have automatic wrapping enabled, I can write some text like This line is starting to get fairly long so it has been wrapped If I start writing a comment, I get fairly sensible behaviour: # ...
16
votes
1answer
255 views

Prevent Vim from breaking up links mid-tag in markdown

Let's say I have this Markdown file: [Lorem ipsum dolor sit ](http://vi.stackexchange.com/many-links-are-often-very) Lookin' good. But the link isn't finished it, so I type -long, and now Vim breaks ...
39
votes
6answers
13k views

Can I justify text in Vim?

The only reason why I'd ever edit a text file in Pico or Nano, and not in Vim was its "Justify" command ^J. It would reformat a paragraph of text, creating line breaks at word breaks so that the text ...
28
votes
4answers
10k views

How can I easily create and maintain tables?

Here is (part of) a table I use in some documentation: +---------------+------------------------+---------------------------------------+ | TASK NAME | WHEN | DESCRIPTION ...
14
votes
1answer
1k views

Show partially hidden wrapped lines

I have turned on line wrapping with set wrap linebreak nolist in my .vimrc. However, this has the annoying behavior that lines not completely visible on the screen are hidden outright and replaced ...

1 2