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:
@@ -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)
|
||||
|
||||
13
vim/print-the-relative-path-of-the-current-file.md
Normal file
13
vim/print-the-relative-path-of-the-current-file.md
Normal 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.
|
||||
|
||||

|
||||
|
||||
See `:help Ctrl-g` for more details.
|
||||
Reference in New Issue
Block a user