From ebecc46ee02f81794d2bd74e4fbc9d433e824eb4 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Fri, 15 Feb 2019 11:34:43 -0600 Subject: [PATCH] Add Navigate To The Nth Column On A Line as a vim til --- README.md | 3 ++- vim/navigate-to-the-nth-column-on-a-line.md | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 vim/navigate-to-the-nth-column-on-a-line.md diff --git a/README.md b/README.md index bd9d994..a1b1d34 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_764 TILs and counting..._ +_765 TILs and counting..._ --- @@ -806,6 +806,7 @@ _764 TILs and counting..._ - [Marks Across Vim Sessions](vim/marks-across-vim-sessions.md) - [Match The Beginning And End Of Words](vim/match-the-beginning-and-end-of-words.md) - [Moving To A Specific Line](vim/moving-to-a-specific-line.md) +- [Navigate To The Nth Column On A Line](vim/navigate-to-the-nth-column-on-a-line.md) - [Navigating By Blank Lines](vim/navigating-by-blank-lines.md) - [NETRW Listing Styles](vim/netrw-listing-styles.md) - [Next Modified Buffer](vim/next-modified-buffer.md) diff --git a/vim/navigate-to-the-nth-column-on-a-line.md b/vim/navigate-to-the-nth-column-on-a-line.md new file mode 100644 index 0000000..ba6b5c5 --- /dev/null +++ b/vim/navigate-to-the-nth-column-on-a-line.md @@ -0,0 +1,19 @@ +# Navigate To The Nth Column On A Line + +You can navigate the cursor to a specific column of the current line using +the `|` character. For instance typing + +``` +45| +``` + +will navigate your cursor to the 45th column of the current line. If you +type a number that exceeds the number of columns on the line, your cursor +will be placed on the last column. + +Here is what the help files have to say about `|`: + +``` +| To screen column [count] in the current line. + |exclusive| motion. Ceci n'est pas une pipe. +```