m (Tag with line:column moved to Tags that jump to line and column: Page moved by JohnBot to improve title) |
(Change to TipImported template + severe manual clean) |
||
Line 1: | Line 1: | ||
{{review}} |
{{review}} |
||
+ | {{TipImported |
||
− | {{Tip |
||
|id=601 |
|id=601 |
||
+ | |previous=600 |
||
− | |title=Tag with line:column |
||
+ | |next=602 |
||
− | |created=October 30, 2003 |
+ | |created=October 30, 2003 |
|complexity=basic |
|complexity=basic |
||
− | |author=mosh |
+ | |author=mosh |
|version=6.0 |
|version=6.0 |
||
|rating=13/6 |
|rating=13/6 |
||
⚫ | |||
− | |text= |
||
− | Tags allow us to jump to a particular line, |
+ | Tags allow us to jump to a particular line, but I needed to get to the exact column also, for example, when I have many tags on one long line. |
+ | This is not possible with the tag format. However with Vim's regexp extensions, I am able to generate and use such tags, for example: |
||
− | but I needed to get to the exact column also, |
||
+ | <pre> |
||
− | eg. when I have many tags on one long line. |
||
⚫ | |||
⚫ | |||
+ | </pre> |
||
⚫ | |||
+ | ---- |
||
− | |||
− | This is not possible with the tag format, however |
||
− | |||
− | with Vim's regexp extensions, I am able to generate |
||
− | |||
− | and use such tags, eg: |
||
− | |||
− | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
− | <!-- parsed by vimtips.py in 0.564469 seconds--> |
Revision as of 09:39, 9 November 2007
Tip 601 Printable Monobook Previous Next
created October 30, 2003 · complexity basic · author mosh · version 6.0
Tags allow us to jump to a particular line, but I needed to get to the exact column also, for example, when I have many tags on one long line.
This is not possible with the tag format. However with Vim's regexp extensions, I am able to generate and use such tags, for example:
> tail -1 ./tags main example.c /^\%89l\%12c/ ;" Goto line 89, column 12.