1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Add Print The Relative Path Of The Current File as a vim til

This commit is contained in:
jbranchaud
2018-08-09 14:29:29 -05:00
parent 155ac4443c
commit d57002c61f
2 changed files with 15 additions and 1 deletions

View File

@@ -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/).
_697 TILs and counting..._
_698 TILs and counting..._
---
@@ -757,6 +757,7 @@ _697 TILs and counting..._
- [Preventing Typos with Abbreviations](vim/preventing-typos-with-abbreviations.md)
- [Previous Buffer](vim/previous-buffer.md)
- [Previous Visual Selection](vim/previous-visual-selection.md)
- [Print The Relative Path Of The Current File](vim/print-the-relative-path-of-the-current-file.md)
- [Print Version Information](vim/print-version-information.md)
- [Quick File Info](vim/quick-file-info.md)
- [Quick Man Pages](vim/quick-man-pages.md)

View File

@@ -0,0 +1,13 @@
# Print The Relative Path Of The Current File
As a project grows and there are many directories and long path names, Vim
will not always have enough room to display the full relative path of the
current file. It may have to cut off the initial directories which can make
it hard to know where you are.
You can hit `Ctrl-g` to quickly display the relative path of the current
file below the status bar.
![example of using ctrl-g](https://i.imgur.com/w7gzIIV.gif)
See `:help Ctrl-g` for more details.