I am practising '[
and ']
, and I cannot see the difference.
How can you highlight the positions of the marks?
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.
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.
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.
Use the showmarks plugin for VIM. It does just that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With