Thomson
Thomson

Reputation: 21714

Adding multiple marks in one line in Vim?

Is it possible to add multiple marks in one line but in different columns? It is a hard limitation in Vim that at most one mark could exist in one line?

Upvotes: 0

Views: 200

Answers (1)

romainl
romainl

Reputation: 196926

You can perfectly set multiple marks on the same line with ma, mb, etc. but 'a and 'b both jump to the same line.

Use

`a

and

`b

to jump to the exact position — line and column — of the mark.

Upvotes: 3

Related Questions