Reputation: 9878
Let's say that my cwd is /home/rgrinberg/project
and I'm browsing some file /home/rgrinberg/project/x/y/z.py
and I'd like to get x/y
.
Upvotes: 0
Views: 787
Reputation: 1994
In normal mode:
:echo expand('%:h')
Please use vim wiki for further research
Upvotes: 3