Wednesday, September 28, 2016

strip filename from full path in small vim

In a 'normal' version of vim

:lcd %:h

will change to the directory of the current file by stripping the filename from the full path.

But in a 'small' vim '%:h' does not exist and '%' refers to the full file path.

Is there a way in 'small' vim to strip the filename from the path?

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: