0

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.

1 Answer 1

3

In normal mode:

:echo expand('%:h') 

Please use vim wiki for further research

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.