Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highlight positions of the marks in Vim?

Tags:

I am practising '[ and '], and I cannot see the difference.

How can you highlight the positions of the marks?

like image 256
Léo Léopold Hertz 준영 Avatar asked Aug 18 '09 02:08

Léo Léopold Hertz 준영


People also ask

How do I mark a position in Vim?

To set a mark, type m followed by a letter. For example, ma sets mark a at the current position (line and column). If you set mark a, any mark in the current file that was previously identified as a is removed. If you set mark A, any previous mark A (in any file) is removed.

How do I highlight a row in Vim?

With the default backslash leader key, pressing \l will highlight the line that currently contains the cursor. The mapping also sets mark l so you can type 'l to return to the highlighted line.

Why are marks used in Vim?

Special marks There are certain marks that Vim sets automatically (which you are able to overwrite yourself, but probably won't need to). For example (paraphrased from Vim's help): `[` and `]`: jump to the first or last character of the previously changed or yanked text.


1 Answers

Use the showmarks plugin for VIM. It does just that.

like image 156
Nathan Fellman Avatar answered Sep 30 '22 19:09

Nathan Fellman