Skip to content

Commit ebecc46

Browse files
committed
Add Navigate To The Nth Column On A Line as a vim til
1 parent 5a36f7b commit ebecc46

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
1010
For a steady stream of TILs from a variety of rocketeers, checkout
1111
[til.hashrocket.com](https://til.hashrocket.com/).
1212

13-
_764 TILs and counting..._
13+
_765 TILs and counting..._
1414

1515
---
1616

@@ -806,6 +806,7 @@ _764 TILs and counting..._
806806
- [Marks Across Vim Sessions](vim/marks-across-vim-sessions.md)
807807
- [Match The Beginning And End Of Words](vim/match-the-beginning-and-end-of-words.md)
808808
- [Moving To A Specific Line](vim/moving-to-a-specific-line.md)
809+
- [Navigate To The Nth Column On A Line](vim/navigate-to-the-nth-column-on-a-line.md)
809810
- [Navigating By Blank Lines](vim/navigating-by-blank-lines.md)
810811
- [NETRW Listing Styles](vim/netrw-listing-styles.md)
811812
- [Next Modified Buffer](vim/next-modified-buffer.md)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Navigate To The Nth Column On A Line
2+
3+
You can navigate the cursor to a specific column of the current line using
4+
the `|` character. For instance typing
5+
6+
```
7+
45|
8+
```
9+
10+
will navigate your cursor to the 45th column of the current line. If you
11+
type a number that exceeds the number of columns on the line, your cursor
12+
will be placed on the last column.
13+
14+
Here is what the help files have to say about `|`:
15+
16+
```
17+
| To screen column [count] in the current line.
18+
|exclusive| motion. Ceci n'est pas une pipe.
19+
```

0 commit comments

Comments
 (0)