Skip to main content
Minor grammatical improvements
Source Link
statox
  • 50.6k
  • 19
  • 153
  • 231

Ignore How to ignore a column when visually selecting a paragraph

I have a file that looks like this:

# Section 1
#
# new: a.txt
# new: b.txt
#
#
# Section 2
#
# [n]ew: c.txt
# new: d.txt
# new: e.txt
#

My cursor is on the first new of the second section and I want to select all the "paragraph", i.e. the 3 new lines starting at this one. But because the paragraph is defined as a set of non-empty lines, vip selects all the file.

How can I select only those 3 lines? This should apply for any number of lines and the cursor should be placed anywhere in the "paragraph", i.e. vip/equivalent should select the current new paragraph.

My question is the following:

How can I omit a column of text when visually selecting a paragraph?

Ignore a column when selecting a paragraph

I have a file that looks like:

# Section 1
#
# new: a.txt
# new: b.txt
#
#
# Section 2
#
# [n]ew: c.txt
# new: d.txt
# new: e.txt
#

My cursor is on the first new of the second section and I want to select all the "paragraph", i.e. the 3 new lines starting at this one. But because the paragraph is defined as a set of non-empty lines, vip selects all the file.

How can I select only those 3 lines? This should apply for any number of lines and the cursor should be placed anywhere, i.e. vip/equivalent should select the current new paragraph.

My question is the following:

How can I omit a column of text when selecting a paragraph?

How to ignore a column when visually selecting a paragraph

I have a file that looks like this:

# Section 1
#
# new: a.txt
# new: b.txt
#
#
# Section 2
#
# [n]ew: c.txt
# new: d.txt
# new: e.txt
#

My cursor is on the first new of the second section and I want to select all the "paragraph", i.e. the 3 new lines starting at this one. But because the paragraph is defined as a set of non-empty lines, vip selects all the file.

How can I select only those 3 lines? This should apply for any number of lines and the cursor should be placed anywhere in the "paragraph", i.e. vip/equivalent should select the current new paragraph.

My question is the following:

How can I omit a column of text when visually selecting a paragraph?

Source Link
nobe4
  • 16.3k
  • 4
  • 50
  • 83

Ignore a column when selecting a paragraph

I have a file that looks like:

# Section 1
#
# new: a.txt
# new: b.txt
#
#
# Section 2
#
# [n]ew: c.txt
# new: d.txt
# new: e.txt
#

My cursor is on the first new of the second section and I want to select all the "paragraph", i.e. the 3 new lines starting at this one. But because the paragraph is defined as a set of non-empty lines, vip selects all the file.

How can I select only those 3 lines? This should apply for any number of lines and the cursor should be placed anywhere, i.e. vip/equivalent should select the current new paragraph.

My question is the following:

How can I omit a column of text when selecting a paragraph?