writepath (GitHub) is a Vim plug-in to help you edit a file at directories that haven’t been created yet, for example, from its README:
:edit some/path/that/does/not/exist.py :write
It’s like using mkdir -p plus touch. This is done via BufWritePre event.
Personally, this would be helpful for me, since I always used terminal to touch and vi the file. Maybe I should change my work flow a bit? But typing path part doesn’t seem to be efficient enough for me, there is always a shell in the directories that I am working on.
writepath is written by Artem Nezvigin, currently version 0.1 (2014-01-22), license is not specified.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.