| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi. I know how to see the name of the file I am currently editing in vim with control + g. But how can I see the full path of the file I am currently editing? Thanks in advance! John |
|
#2
| |||
| |||
| John wrote: > But how can I see the full path of the file I am currently editing? At least this way: :echo expand('% ')You can map it to a key you need it often. |
|
#3
| |||
| |||
| John wrote: >But how can I see the full path of the file I am currently editing? 1 Ctrl-G And 2 Ctrl-G will also show the buffer number. John2 |
|
#4
| |||
| |||
| John Beckett wrote: > John wrote: >>But how can I see the full path of the file I am currently editing? > > 1 Ctrl-G > > And 2 Ctrl-G will also show the buffer number. Below user's home directory these may show only related to $HOME so it's prefixed with ~/ . I think that in many cases it's indeed "full enough path" but if truly full right-from-the-root path must be guaranteed then it seems that evaluating expand('% ') is the only option. |
|
#5
| |||
| |||
| Teemu Likonen wrote: >> 1 Ctrl-G >> >> And 2 Ctrl-G will also show the buffer number. > >Below user's home directory these may show only related to $HOME so it's >prefixed with ~/ Good grief - of course ... I'm so used to it I overlooked that. John |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.