The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [join]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

use J to join comments

Imagine I have comments // line one // line two and I am on line one and want to join it with line two I will press J but that results in this: // line one // line two Instead of what I want // ...
0
votes
2answers
65 views

Vim: Foldtext contain all content, instead of only the first line

Would like to have all content of the folded block, instead of only the first line. My current foldsettings are: set foldmethod=marker set foldmarker={,} Example how my data is structured: { ...
0
votes
2answers
34 views

Prepend line underneath current line (or “join” to front of line)

I'd like to prepend the line below the current line to the current line. In other words, I want to "join" (like with J in normal mode) but instead of putting the line below the current line at the end ...
1
vote
1answer
84 views

Preventing the join() command from adding extra space

I am trying to use the join command to join multiple strings. The join command seems to add one character of space in between each of the strings. But I don't want any space added. As an example, I'm ...
1
vote
0answers
35 views

Why are my bulleted lines automatically joining?

I use the a formatoption to make my text hard wrap, and the n formatoption to recognize numbered lists. The help says that the n option should use the formatlistpat regex to determine which lines not ...
2
votes
1answer
325 views

How do I remove newlines inside arbitrary xml tags matching a pattern?

I'm working with large xml files that have tags, and some are spread across multiple lines, and some are on a single line. I'd like them to all be on a single line. There are other tags in the files ...
3
votes
1answer
612 views

Join the line above the current line

I often use J to join the current line with the one below: J Join [count] lines, with a minimum of two lines. Remove the indent and insert up to two ...
1
vote
0answers
31 views

substitute a join for a character that ends a line

when pasting from a pdf document, words in the original document are being split up, and replaced by a - and a line break. For example: alternative specifications. In con- clusion, these findings ...